jeudi 8 décembre 2016

Method Injection - not in a controller?

Inside a class I wish to inject an Interface and have the IOC resolve it.

public function handle(\some\interface $foo){

    $foo->bar();
}

The above does not work.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire