src/AutoInject.php
private function addClassProvider($class, Reference $reference)
    {
        if (empty($this->classProviders[$class])) {
            $this->classProviders[$class] = [];
        }
        
        $this->classProviders[$class][] = $reference;
    }
private function addClassProvider($class, Reference $reference)
    {
        if (empty($this->classProviders[$class])) {
            $this->classProviders[$class] = [];
        }
        
        $this->classProviders[$class][] = $reference;
    }
private function addClassProvider ( $ class , Reference $ reference ) { if ( empty ( $ this -> classProviders [ $ class ] ) ) { $ this -> classProviders [ $ class ] = [ ] ; } $ this -> classProviders [ $ class ] [ ] = $ reference ; }
Add a class provider to the list
@param string $class
@param Reference $reference
Add a class provider to the list