Symfony\Component\Routing\Loader\AnnotationClassLoader::__construct PHP Method

__construct() public method

Constructor.
public __construct ( AnnotationReader $reader )
$reader Doctrine\Common\Annotations\AnnotationReader
    public function __construct(AnnotationReader $reader)
    {
        $this->reader = $reader;
    }

Same methods

AnnotationClassLoader::__construct ( Doctrine\Common\Annotations\Reader $reader )

Usage Example

 /**
  * Constructor.
  *
  * @param AnnotationReader $reader An AnnotationReader instance
  * @param ConfigurationAnnotationReader $configReader A ConfigurationAnnotationReader instance
  */
 public function __construct(AnnotationReader $reader, ConfigurationAnnotationReader $configReader)
 {
     $this->configReader = $configReader;
     parent::__construct($reader);
 }