Autowire services

You can "autowire" your services, or automatically define their dependencies in *.services.yml based on their class constructor.

services:
  smart_link.remote:
    class: Drupal\smart_link\Remote
    autowire: true