This file contains hidden or 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 | |
/** | |
* Router factory. | |
*/ | |
class RouterFactory | |
{ | |
/** | |
* @return \Nette\Application\IRouter |
This file contains hidden or 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 | |
class AppExtension extends CompilerExtension | |
{ | |
public function loadConfiguration() | |
{ | |
$builder = $this->getContainerBuilder(); | |
$builder->addDefinition('service.routerFactory') | |
->setClass('Modules\RouterFactory') // YOUR ROUTER FACTORY CLASS | |
->addTag(Flame\Modules\ModulesExtension::TAG_ROUTER); // DONT FORGET TO ADD THE TAG! |
This file contains hidden or 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 | |
class BarPanel implements \Tracy\IBarPanel | |
{ | |
/** | |
* Renders HTML code for custom tab. | |
* | |
* @return string | |
*/ |
This file contains hidden or 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 | |
class BlueScreenPanel | |
{ | |
public static function test() | |
{ | |
echo 'Your super intelligent debug panel'; | |
} |
This file contains hidden or 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 | |
class ErrorExtension extends Nette\DI\CompilerExtension implements Flame\Modules\Providers\IErrorPresenterProvider | |
{ | |
/** | |
* Return name of error presenter | |
* | |
* @return string | |
*/ |
This file contains hidden or 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 | |
class MacroInstaller extends Latte\Macros\MacroSet | |
{ | |
const OUTPUT = 'do-everything-with-that'; | |
/** | |
* @param Compiler $compiler | |
* @return void|static |
This file contains hidden or 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 | |
class HelperProvider implements Flame\Modules\Template\IHelperProvider | |
{ | |
/** | |
* Provide custom helper registration | |
* | |
* @param Engine $engine | |
* @return void |
This file contains hidden or 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 | |
class AppExtension extends CompilerExtension implements Flame\Modules\Providers\IParametersProvider | |
{ | |
/** | |
* Return array of parameters, | |
* which you want to add into DIC | |
* | |
* @example return array('images' => 'path/to/folder/with/images'); |
This file contains hidden or 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 | |
class AppExtension extends Nette\DI\CompilerExtension implements Flame\Modules\Providers\IPresenterMappingProvider | |
{ | |
/** | |
* Returns array of ClassNameMask => PresenterNameMask | |
* | |
* @example return array('*' => 'Booking\*Module\Presenters\*Presenter'); | |
* @return array |
This file contains hidden or 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 | |
class AppExtension extends Nette\DI\CompilerExtension implements Flame\Modules\Providers\IRouterProvider | |
{ | |
/** | |
* Returns array of ServiceDefinition, | |
* that will be appended to setup of router service | |
* | |
* @example https://github.com/nette/sandbox/blob/master/app/router/RouterFactory.php - createRouter() |
NewerOlder