lib/private/AppFramework/Utility/SimpleContainer.php
/**
	 * If a parameter is not registered in the container try to instantiate it
	 * by using reflection to find out how to build the class
	 * @param string $name the class name to resolve
	 * @return \stdClass
	 * @throws QueryException if the class could not be found or instantiated
	 */
If a parameter is not registered in the container try to instantiate it
by using reflection to find out how to build the class
@param string $name the class name to resolve
@return \stdClass
@throws QueryException if the class could not be found or instantiated
If a parameter is not registered in the container try to instantiate it by using reflection to find out how to build the class @param string $name the class name to resolve @return \ stdClass @throws QueryException if the class could not be found or instantiated
public function resolve($name) {
		$baseMsg = 'Could not resolve ' . $name . '!';
		try {
			$class = new ReflectionClass($name);
			if ($class->isInstantiable()) {
				return $this->buildClass($class);
			} else {
				throw new QueryException($baseMsg .
					' Class can not be instantiated');
			}
		} catch(ReflectionException $e) {
			throw new QueryException($baseMsg . ' ' . $e->getMessage());
		}
	}
public function resolve ( $ name ) { $ baseMsg = 'Could not resolve ' . $ name . '!' ; try { $ class = new ReflectionClass ( $ name ) ; if ( $ class -> isInstantiable ( ) ) { return $ this -> buildClass ( $ class ) ; } else { throw new QueryException ( $ baseMsg . ' Class can not be instantiated' ) ; } } catch ( ReflectionException $ e ) { throw new QueryException ( $ baseMsg . ' ' . $ e -> getMessage ( ) ) ; } }
If a parameter is not registered in the container try to instantiate it
 by using reflection to find out how to build the class
 @param string $name the class name to resolve
 @return \stdClass
 @throws QueryException if the class could not be found or instantiated
If a parameter is not registered in the container try to instantiate it by using reflection to find out how to build the class @param string $name the class name to resolve @return \ stdClass @throws QueryException if the class could not be found or instantiated