Méthode | Description | |
---|---|---|
__construct ( array $extensions, null | string $extensionsPath = null ) | Initializes manager. | |
activateExtension ( string $locator ) : Behat\Testwork\ServiceContainer\Extension | Activate extension by its locator. | |
debugInformation ( ) : array | Returns array with extensions debug information. | |
getExtension ( string $key ) : Behat\Testwork\ServiceContainer\Extension | Returns specific extension by its name. | |
getExtensionClasses ( ) : array | Returns activated extension names. | |
getExtensions ( ) : Behat\Testwork\ServiceContainer\Extension[] | Returns all available extensions. | |
initializeExtensions ( ) | Initializes all activated and predefined extensions. | |
setExtensionsPath ( null | string $path ) | Sets path to directory in which manager will try to find extension files. |
Méthode | Description | |
---|---|---|
getFullExtensionClass ( string $locator ) : string | Attempts to guess full extension class from relative. | |
initialize ( string $locator ) : Behat\Testwork\ServiceContainer\Extension | Initializes extension by id. | |
instantiateExtension ( string $locator ) : Behat\Testwork\ServiceContainer\Extension | Instantiates extension from its locator. | |
validateExtensionInstance ( Behat\Testwork\ServiceContainer\Extension $extension, string $locator ) | Validates extension instance. |
public activateExtension ( string $locator ) : Behat\Testwork\ServiceContainer\Extension | ||
$locator | string | phar file name, php file name, class name |
Résultat | Behat\Testwork\ServiceContainer\Extension |
public debugInformation ( ) : array | ||
Résultat | array |
public getExtension ( string $key ) : Behat\Testwork\ServiceContainer\Extension | ||
$key | string | |
Résultat | Behat\Testwork\ServiceContainer\Extension |
public getExtensionClasses ( ) : array | ||
Résultat | array |
public getExtensions ( ) : Behat\Testwork\ServiceContainer\Extension[] | ||
Résultat | Behat\Testwork\ServiceContainer\Extension[] |
public initializeExtensions ( ) |
public setExtensionsPath ( null | string $path ) | ||
$path | null | string |