Code: Select all
$this->phpbb_log = $GLOBALS['phpbb_container']->get('log');
Code: Select all
$this->phpbb_log = $GLOBALS['phpbb_container']->get('log');
If it didn't exists you wouldn't be able to ask it from the containercYbercOsmOnauT wrote:Well said
https://wiki.phpbb.com/Dependency_list
there is nothing like a log dependency in the list... please now don't come and tell me that this exists and I had to look inside the phpBB sourcecode.
\phpbb\config\config $config
.global $var;
in most cases. in your Wiki I believe that such core stuff should be available as dependency.By staying up until the wee hours of the night looking at code...like I did. I guess.cYbercOsmOnauT wrote:Thanks RMcGirr83... but tell me one thing.. how can someone who does not sleep with the phpBB source know that there is such a dependency existing when it's not found in the wiki?
Catchable fatal error: Argument 7 passed to cosmo\peoplesign\captcha\peoplesign::__construct() must be an instance of \ContainerInterface, instance of phpbb_cache_container given, called in /var/www/dev/board/cache/container_dotslashdotdotslash.php on line 990
use Symfony\Component\DependencyInjection\ContainerInterface;
I think one could have just opened any of the other extensions (including the acme extension) to have figured this out?cYbercOsmOnauT wrote:but nowhere documented
https://github.com/phpbb/phpbb/blob/3.1 ... s.yml#L121