Beispiel #1
0
 /**
  * @param string $className
  * @return bool|mixed False if no auto loading required.
  */
 public function load($className)
 {
     $reflection = new \ReflectionClass($className);
     $instance = $this->constructorConnector->connect($reflection);
     return $this->loadInstance($instance);
 }
 /**
  * @param ConstructorConnector $connector
  * @param string $type
  * @return mixed
  */
 private function invokeConnect(ConstructorConnector $connector, $type)
 {
     return $connector->connect(new \ReflectionClass($type));
 }