1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-21 16:01:40 +02:00

[ticket/13740] Fix CS and docblocks

PHPBB3-13740
This commit is contained in:
Mate Bartus
2015-07-21 14:42:15 +02:00
parent 0488c49116
commit b2b9fb1df2
10 changed files with 36 additions and 62 deletions

View File

@@ -93,9 +93,26 @@ class container_factory
* @param string $param_name
*
* @return mixed
*
* @throws \phpbb\install\exception\cannot_build_container_exception When container cannot be built
*/
public function get_parameter($param_name)
{
// Check if container was built, if not try to build it
if ($this->container === null)
{
// Check whether container can be built
// We need config.php for that so let's check if it has been set up yet
if (filesize($this->phpbb_root_path . 'config.' . $this->php_ext))
{
$this->build_container();
}
else
{
throw new cannot_build_container_exception();
}
}
return $this->container->getParameter($param_name);
}