public function create($name, array $arguments = array())
	{
		if(!isset($this->reflections[$name]))
			$this->reflections[$name] = new \ReflectionClass($this->registry[$name]);

		$reflection = $this->reflections[$name];

		return $reflection->newInstanceArgs($arguments);
	}
public function create($name, array $arguments = array())
	{
		if(!isset($this->reflections[$name]))
			$this->reflections[$name] = new \ReflectionClass($this->registry[$name]);

		$reflection = $this->reflections[$name];

		return $reflection->newInstanceArgs($arguments);
	}
public function create ( $ name , array $ arguments = array ( ) ) { if ( ! isset ( $ this -> reflections [ $ name ] ) ) $ this -> reflections [ $ name ] = new \ ReflectionClass ( $ this -> registry [ $ name ] ) ; $ reflection = $ this -> reflections [ $ name ] ; return $ reflection -> newInstanceArgs ( $ arguments ) ; }
General method to create classes from the registered list.
@param string $name
@param array $arguments
@return mixed
General method to create classes from the registered list .