<?php namespace Acme\Components; use Acme\Services\MailService; class TestComponentA { public $mail; /** * @inject.param $service mail */ public function __construct(MailService $service) { $this->mail = $service; } }
info at phpclasses dot org