This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$configuration = new \ProxyManager\Configuration(); | |
$configuration->setProxiesTargetDir($this->phpbb_root_path . '/cache'); | |
spl_autoload_register($configuration->getProxyAutoloader()); | |
$factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory($configuration); | |
$twig = $this->twig; | |
$lexer = $factory->createProxy( | |
'phpbb\template\twig\lexer', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* @package phpBB3 | |
* @copyright (c) 2011 phpBB Group | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 | |
* | |
*/ | |
namespace phpbb\di; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
- tables: | |
- %core.table_prefix%my_first_table | |
- %core.table_prefix%my_second_table | |
and maybe (but i'm not sure): | |
parameters: | |
- tables: | |
- [ table1, %core.table_prefix%my_first_table ] | |
- [ table2, %core.table_prefix%my_second_table ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function set_custom_style($names, $paths) | |
{ | |
$paths = (is_string($paths)) ? array($paths) : $paths; | |
$names = (is_string($names)) ? array($names) : $names; | |
// Set as __main__ namespace | |
$this->twig->getLoader()->setPaths($paths); | |
NewerOlder