Метод | Описание | |
---|---|---|
__construct ( string | null $rootDir = null, string $env = Environment::DEV ) | Creates a new instance for the given Puli project. | |
arePluginsEnabled ( ) : boolean | Returns whether Puli plugins are enabled. | |
disablePlugins ( ) | Disables all Puli plugins. | |
enablePlugins ( ) | Enables all Puli plugins. | |
getAssetManager ( ) : Puli\Manager\Api\Asset\AssetManager | Returns the asset manager. | |
getConfigFileConverter ( ) : Puli\Manager\Config\ConfigFileConverter | Returns the configuration file serializer. | |
getConfigFileManager ( ) : Puli\Manager\Api\Config\ConfigFileManager | Returns the configuration file manager. | |
getContext ( ) : Puli\Manager\Api\Context\Context | Puli\Manager\Api\Context\ProjectContext | Returns the context. | |
getDiscovery ( ) : Puli\Discovery\Api\EditableDiscovery | Returns the resource discovery of the project. | |
getDiscoveryManager ( ) : Puli\Manager\Api\Discovery\DiscoveryManager | Returns the resource discovery manager. | |
getEnvironment ( ) : string | Retturns the environment of the managed Puli project. | |
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | null | Returns the used event dispatcher. | |
getFactory ( ) : object | ||
getFactoryManager ( ) : Puli\Manager\Api\Factory\FactoryManager | ||
getInstallationManager ( ) : Puli\Manager\Api\Installation\InstallationManager | Returns the installation manager. | |
getInstallerManager ( ) : Puli\Manager\Api\Installer\InstallerManager | Returns the installer manager. | |
getJsonDecoder ( ) : |
Returns the JSON decoder. | |
getJsonEncoder ( ) : |
Returns the JSON encoder. | |
getJsonValidator ( ) : |
Returns the JSON validator. | |
getLegacyModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | Returns the module file serializer with support for legacy versions. | |
getLegacyRootModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | Returns the module file serializer with support for legacy versions. | |
getLogger ( ) : Psr\Log\LoggerInterface | Returns the logger. | |
getModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | Returns the module file converter. | |
getModuleManager ( ) : Puli\Manager\Api\Module\ModuleManager | Returns the module manager. | |
getRepository ( ) : Puli\Repository\Api\EditableRepository | Returns the resource repository of the project. | |
getRepositoryManager ( ) : Puli\Manager\Api\Repository\RepositoryManager | Returns the resource repository manager. | |
getRootDirectory ( ) : string | null | Returns the root directory of the managed Puli project. | |
getRootModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | Returns the module file converter. | |
getRootModuleFileManager ( ) : Puli\Manager\Api\Module\RootModuleFileManager | Returns the root module file manager. | |
getServerManager ( ) : Puli\Manager\Api\Server\ServerManager | Returns the server manager. | |
getStorage ( ) : Puli\Manager\Api\Storage\Storage | Returns the file storage. | |
getUrlGenerator ( ) : Puli\UrlGenerator\Api\UrlGenerator | Returns the resource URL generator. | |
isStarted ( ) : boolean | Returns whether the service container is started. | |
setEnvironment ( string $env ) | Sets the environment of the managed Puli project. | |
setEventDispatcher ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | Sets the event dispatcher to use. | |
setLogger ( Psr\Log\LoggerInterface $logger ) | Sets the logger to use. | |
setRootDirectory ( string | null $rootDir ) | Sets the root directory of the managed Puli project. | |
start ( ) | Starts the service container. |
Метод | Описание | |
---|---|---|
activatePlugins ( ) | ||
createGlobalContext ( ) | ||
createProjectContext ( string $rootDir, $env ) : Puli\Manager\Api\Context\ProjectContext | Creates the context of a Puli project. | |
createValidatingConverter ( Webmozart\Json\Conversion\JsonConverter $innerConverter, string | callable | null $schema = null ) : |
Decorates a converter with a {@link ValidatingConverter}. | |
getJsonStorage ( ) : |
Returns the JSON file storage. | |
getJsonVersioner ( ) : Webmozart\Json\Versioning\JsonVersioner | Returns the JSON versioner. | |
getModuleFileMigrationManager ( ) : |
Returns the migration manager for module files. | |
loadConfigFile ( $homeDir, Puli\Manager\Api\Config\Config $baseConfig ) | ||
parseHomeDirectory ( ) : null | string | Parses the system context for a home directory. | |
validatePluginClass ( string $pluginClass ) | Validates the given plugin class name. |
public __construct ( string | null $rootDir = null, string $env = Environment::DEV ) | ||
$rootDir | string | null | The root directory of the Puli project. If none is passed, the object operates in the global context. You can set or switch the root directories later on by calling {@link setRootDirectory()}. |
$env | string | One of the {@link Environment} constants. |
public arePluginsEnabled ( ) : boolean | ||
Результат | boolean | Returns `true` if Puli plugins will be loaded and `false` otherwise. |
public getAssetManager ( ) : Puli\Manager\Api\Asset\AssetManager | ||
Результат | Puli\Manager\Api\Asset\AssetManager | The asset manager. |
public getConfigFileConverter ( ) : Puli\Manager\Config\ConfigFileConverter | ||
Результат | Puli\Manager\Config\ConfigFileConverter | The configuration file serializer. |
public getConfigFileManager ( ) : Puli\Manager\Api\Config\ConfigFileManager | ||
Результат | Puli\Manager\Api\Config\ConfigFileManager | The configuration file manager. |
public getContext ( ) : Puli\Manager\Api\Context\Context | Puli\Manager\Api\Context\ProjectContext | ||
Результат | Puli\Manager\Api\Context\Context | Puli\Manager\Api\Context\ProjectContext | The context. |
public getDiscovery ( ) : Puli\Discovery\Api\EditableDiscovery | ||
Результат | Puli\Discovery\Api\EditableDiscovery | The resource discovery. |
public getDiscoveryManager ( ) : Puli\Manager\Api\Discovery\DiscoveryManager | ||
Результат | Puli\Manager\Api\Discovery\DiscoveryManager | The discovery manager. |
public getEnvironment ( ) : string | ||
Результат | string | One of the {@link Environment} constants. |
public getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | null | ||
Результат | Symfony\Component\EventDispatcher\EventDispatcherInterface | null | The used logger. |
public getFactoryManager ( ) : Puli\Manager\Api\Factory\FactoryManager | ||
Результат | Puli\Manager\Api\Factory\FactoryManager |
public getInstallationManager ( ) : Puli\Manager\Api\Installation\InstallationManager | ||
Результат | Puli\Manager\Api\Installation\InstallationManager | The installation manager. |
public getInstallerManager ( ) : Puli\Manager\Api\Installer\InstallerManager | ||
Результат | Puli\Manager\Api\Installer\InstallerManager | The installer manager. |
public getJsonDecoder ( ) : |
||
Результат | The JSON decoder. |
public getJsonEncoder ( ) : |
||
Результат | The JSON encoder. |
public getJsonValidator ( ) : |
||
Результат | The JSON validator. |
public getLegacyModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | ||
Результат | Webmozart\Json\Conversion\JsonConverter | The module file converter. |
public getLegacyRootModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | ||
Результат | Webmozart\Json\Conversion\JsonConverter | The module file converter. |
public getLogger ( ) : Psr\Log\LoggerInterface | ||
Результат | Psr\Log\LoggerInterface | The logger. |
public getModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | ||
Результат | Webmozart\Json\Conversion\JsonConverter | The module file converter. |
public getModuleManager ( ) : Puli\Manager\Api\Module\ModuleManager | ||
Результат | Puli\Manager\Api\Module\ModuleManager | The module manager. |
public getRepository ( ) : Puli\Repository\Api\EditableRepository | ||
Результат | Puli\Repository\Api\EditableRepository | The resource repository. |
public getRepositoryManager ( ) : Puli\Manager\Api\Repository\RepositoryManager | ||
Результат | Puli\Manager\Api\Repository\RepositoryManager | The repository manager. |
public getRootDirectory ( ) : string | null | ||
Результат | string | null | The root directory of the managed Puli project or `null` if none is set. |
public getRootModuleFileConverter ( ) : Webmozart\Json\Conversion\JsonConverter | ||
Результат | Webmozart\Json\Conversion\JsonConverter | The module file converter. |
public getRootModuleFileManager ( ) : Puli\Manager\Api\Module\RootModuleFileManager | ||
Результат | Puli\Manager\Api\Module\RootModuleFileManager | The module file manager. |
public getServerManager ( ) : Puli\Manager\Api\Server\ServerManager | ||
Результат | Puli\Manager\Api\Server\ServerManager | The server manager. |
public getStorage ( ) : Puli\Manager\Api\Storage\Storage | ||
Результат | Puli\Manager\Api\Storage\Storage | The storage. |
public getUrlGenerator ( ) : Puli\UrlGenerator\Api\UrlGenerator | ||
Результат | Puli\UrlGenerator\Api\UrlGenerator | The resource URL generator. |
public setEnvironment ( string $env ) | ||
$env | string | One of the {@link Environment} constants. |
public setEventDispatcher ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | The event dispatcher to use. |
public setLogger ( Psr\Log\LoggerInterface $logger ) | ||
$logger | Psr\Log\LoggerInterface | The logger to use. |
public setRootDirectory ( string | null $rootDir ) | ||
$rootDir | string | null | The root directory of the managed Puli project or `null` to start Puli outside of a specific project. |