src/AutoInject.php
private function addInterfaceProvider($interface, Reference $reference)
    {
        if (empty($this->interfaceProviders[$interface])) {
            $this->interfaceProviders[$interface]= [];
        }

        $this->interfaceProviders[$interface][] = $reference;
    }
private function addInterfaceProvider($interface, Reference $reference)
    {
        if (empty($this->interfaceProviders[$interface])) {
            $this->interfaceProviders[$interface]= [];
        }

        $this->interfaceProviders[$interface][] = $reference;
    }
private function addInterfaceProvider ( $ interface , Reference $ reference ) { if ( empty ( $ this -> interfaceProviders [ $ interface ] ) ) { $ this -> interfaceProviders [ $ interface ] = [ ] ; } $ this -> interfaceProviders [ $ interface ] [ ] = $ reference ; }
Add an interface provider to the list
@param string $interface
@param Reference $reference
Add an interface provider to the list