PHP Class N98\Magento\Command\Developer\Module\Rewrite\ClassExistsChecker

Datei anzeigen Open project: netz98/n98-magerun Class Usage Examples

Public Methods

Method Description
__construct ( string $className ) ClassExistsChecker constructor.
autoloadTerminator ( $notFoundClass ) Method is called as last auto-loader (if all others have failed), so the class does not exists (is not resolve-able)
create ( string $className ) : ClassExistsChecker
existsExtendsSafe ( ) : boolean Check for class-existence while handling conditional definition of classes that extend from non-existent classes as it can happen with Magento Varien_Autoload that is using include to execute files for class definitions.

Private Methods

Method Description
endContext ( $context )
exceptionContext ( $context, Exception $ex ) : boolean
startContext ( ) : stdClass

Method Details

__construct() public method

ClassExistsChecker constructor.
public __construct ( string $className )
$className string

autoloadTerminator() public method

Method is called as last auto-loader (if all others have failed), so the class does not exists (is not resolve-able)
public autoloadTerminator ( $notFoundClass )
$notFoundClass

create() public static method

public static create ( string $className ) : ClassExistsChecker
$className string
return ClassExistsChecker

existsExtendsSafe() public method

Check for class-existence while handling conditional definition of classes that extend from non-existent classes as it can happen with Magento Varien_Autoload that is using include to execute files for class definitions.
public existsExtendsSafe ( ) : boolean
return boolean