public function instantiate( $class ) {
		$this->verifyBootstrap();

		$instance = $this->resolve( $class );

		if ( $instance === null ) {
			if ( ! class_exists( $class ) ) {
				throw new ClassNotFoundException( 'Class not found: ' . $class );
			}

			$instance = new $class();
		}

		return $instance;
	}
public function instantiate( $class ) {
		$this->verifyBootstrap();

		$instance = $this->resolve( $class );

		if ( $instance === null ) {
			if ( ! class_exists( $class ) ) {
				throw new ClassNotFoundException( 'Class not found: ' . $class );
			}

			$instance = new $class();
		}

		return $instance;
	}
public function instantiate ( $ class ) { $ this -> verifyBootstrap ( ) ; $ instance = $ this -> resolve ( $ class ) ; if ( $ instance === null ) { if ( ! class_exists ( $ class ) ) { throw new ClassNotFoundException ( 'Class not found: ' . $ class ) ; } $ instance = new $ class ( ) ; } return $ instance ; }
Create and return a class instance.

@throws ClassNotFoundException
@param  string $class
@return object
Create and return a class instance .