Property | Type | Description | |
---|---|---|---|
$cache_dir | string | ||
$compile_container | boolean | Indicates if the container should be compiled automatically (default to true). | |
$config_path | string | Defines a custom path to find the configuration of the container (default to $this->phpbb_root_path . 'config') | |
$config_php_file | phpbb\config_php_file | ||
$container | The container under construction | ||
$custom_parameters | array | Default to: array( 'core.root_path', $this->phpbb_root_path, 'core.php_ext', $this->php_ext, ); | |
$environment | The environment to use. | ||
$php_ext | php file extension | ||
$phpbb_root_path | phpBB Root Path | ||
$use_cache | boolean | If DEBUG_CONTAINER is set this option is ignored and a new container is build. | |
$use_extensions | boolean | Indicates whether extensions should be used (default to true). |
Method | Description | |
---|---|---|
__construct ( string $phpbb_root_path, string $php_ext ) | Constructor | |
get_container ( ) : phpbb_cache_container | |
Build and return a new Container respecting the current configuration | |
with_cache ( ) | Enable the caching of the container. | |
with_cache_dir ( string $cache_dir ) | Set the cache directory. | |
with_compiled_container ( ) | Enable the compilation of the container. | |
with_config ( phpbb\config_php_file $config_php_file ) | Set custom parameters to inject into the container. | |
with_config_path ( string $config_path ) | Set a custom path to find the configuration of the container. | |
with_custom_parameters ( array $custom_parameters ) | Set custom parameters to inject into the container. | |
with_environment ( string $environment ) | Enable the extensions. | |
with_extensions ( ) | Enable the extensions. | |
without_cache ( ) | Disable the caching of the container. | |
without_compiled_container ( ) | Disable the compilation of the container. | |
without_extensions ( ) | Disable the extensions. |
Method | Description | |
---|---|---|
create_container ( array $extensions ) : |
Create the ContainerBuilder object | |
dump_container ( Symfony\Component\Config\ConfigCache $cache ) | Dump the container to the disk. | |
get_cache_dir ( ) : string | Returns the path to the cache directory (default: root_path/cache/environment). | |
get_config_path ( ) : string | Returns the path to the container configuration (default: root_path/config) | |
get_container_filename ( ) : string | Get the filename under which the dumped container will be stored. | |
get_core_parameters ( ) : array | Returns the core parameters. | |
get_env_parameters ( ) : array | Gets the environment parameters. | |
get_environment ( ) : string | Return the name of the current environment. | |
inject_custom_parameters ( ) | Inject the customs parameters into the container | |
load_extensions ( ) | Load the enabled extensions. |
public __construct ( string $phpbb_root_path, string $php_ext ) | ||
$phpbb_root_path | string | Path to the phpbb includes directory. |
$php_ext | string | php file extension |
protected create_container ( array $extensions ) : |
||
$extensions | array | Array of Container extension objects |
return | object |
protected dump_container ( Symfony\Component\Config\ConfigCache $cache ) | ||
$cache | Symfony\Component\Config\ConfigCache | The config cache |
protected get_cache_dir ( ) : string | ||
return | string | Path to the cache directory. |
protected get_config_path ( ) : string | ||
return | string |
public get_container ( ) : phpbb_cache_container | |
||
return | phpbb_cache_container | |
protected get_container_filename ( ) : string | ||
return | string | Path for dumped container |
protected get_core_parameters ( ) : array | ||
return | array | An array of core parameters |
protected get_env_parameters ( ) : array | ||
return | array | An array of parameters |
protected get_environment ( ) : string | ||
return | string |
protected inject_custom_parameters ( ) |
public with_cache ( ) |
public with_cache_dir ( string $cache_dir ) | ||
$cache_dir | string | The cache directory. |
public with_compiled_container ( ) |
public with_config ( phpbb\config_php_file $config_php_file ) | ||
$config_php_file | phpbb\config_php_file |
public with_config_path ( string $config_path ) | ||
$config_path | string |
public with_custom_parameters ( array $custom_parameters ) | ||
$custom_parameters | array |
public with_environment ( string $environment ) | ||
$environment | string | The environment to use |
public without_compiled_container ( ) |
protected bool $compile_container | ||
return | boolean |
protected string $config_path | ||
return | string |
protected config_php_file,phpbb $config_php_file | ||
return | phpbb\config_php_file |
protected ContainerBuilder,Symfony\Component\DependencyInjection $container | ||
return |
protected array $custom_parameters | ||
return | array |
protected bool $use_cache | ||
return | boolean |
protected bool $use_extensions | ||
return | boolean |