[ Index ]

PHP Cross Reference of phpBB-3.2.8-deutsch

title

Body

[close]

/phpbb/di/ -> container_builder.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 673 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

container_builder:: (26 methods):
  __construct()
  get_container()
  with_environment()
  with_extensions()
  without_extensions()
  with_cache()
  without_cache()
  with_cache_dir()
  with_compiled_container()
  without_compiled_container()
  with_config_path()
  with_custom_parameters()
  with_config()
  get_config_path()
  get_cache_dir()
  load_extensions()
  dump_container()
  create_container()
  inject_custom_parameters()
  inject_dbal_driver()
  get_core_parameters()
  get_env_parameters()
  get_container_filename()
  get_autoload_filename()
  get_environment()
  register_ext_compiler_pass()


Class: container_builder  - X-Ref

__construct($phpbb_root_path, $php_ext)   X-Ref
Constructor

param: string $phpbb_root_path Path to the phpbb includes directory.
param: string $php_ext php file extension

get_container()   X-Ref
Build and return a new Container respecting the current configuration

return: \phpbb_cache_container|ContainerBuilder

with_environment($environment)   X-Ref
Enable the extensions.

param: string $environment The environment to use
return: $this

with_extensions()   X-Ref
Enable the extensions.

return: $this

without_extensions()   X-Ref
Disable the extensions.

return: $this

with_cache()   X-Ref
Enable the caching of the container.

If DEBUG_CONTAINER is set this option is ignored and a new container is build.

return: $this

without_cache()   X-Ref
Disable the caching of the container.

return: $this

with_cache_dir($cache_dir)   X-Ref
Set the cache directory.

param: string $cache_dir The cache directory.
return: $this

with_compiled_container()   X-Ref
Enable the compilation of the container.

return: $this

without_compiled_container()   X-Ref
Disable the compilation of the container.

return: $this

with_config_path($config_path)   X-Ref
Set a custom path to find the configuration of the container.

param: string $config_path
return: $this

with_custom_parameters($custom_parameters)   X-Ref
Set custom parameters to inject into the container.

param: array $custom_parameters
return: $this

with_config(\phpbb\config_php_file $config_php_file)   X-Ref
Set custom parameters to inject into the container.

param: \phpbb\config_php_file $config_php_file
return: $this

get_config_path()   X-Ref
Returns the path to the container configuration (default: root_path/config)

return: string

get_cache_dir()   X-Ref
Returns the path to the cache directory (default: root_path/cache/environment).

return: string Path to the cache directory.

load_extensions()   X-Ref
Load the enabled extensions.


dump_container($cache)   X-Ref
Dump the container to the disk.

param: ConfigCache $cache The config cache

create_container(array $extensions)   X-Ref
Create the ContainerBuilder object

param: array $extensions Array of Container extension objects
return: ContainerBuilder object

inject_custom_parameters()   X-Ref
Inject the customs parameters into the container


inject_dbal_driver()   X-Ref
Inject the dbal connection driver into container


get_core_parameters()   X-Ref
Returns the core parameters.

return: array An array of core parameters

get_env_parameters()   X-Ref
Gets the environment parameters.

Only the parameters starting with "PHPBB__" are considered.

return: array An array of parameters

get_container_filename()   X-Ref
Get the filename under which the dumped container will be stored.

return: string Path for dumped container

get_autoload_filename()   X-Ref
Get the filename under which the dumped extensions autoloader will be stored.

return: string Path for dumped extensions autoloader

get_environment()   X-Ref
Return the name of the current environment.

return: string

register_ext_compiler_pass()   X-Ref
No description



Generated: Tue Apr 7 19:42:26 2020 Cross-referenced by PHPXref 0.7.1