/** * bootstrap application * @param Application $application * @return mixed */ public function boot(Application $application) { $initializer = $application->getManager()->getInitializer(); $initializer->after('Cti\\Core\\Module\\Console', array($this, 'registerCommands')); $application->getFenom()->addSource($this->getPath('resources fenom')); }
public function get(Application $application) { $application->getCoffee()->build('application'); $application->getFenom()->display('index', array('script' => 'public/js/application.js', 'direct' => $application->getDirect()->getUrl())); }
function display() { $this->application->getSencha()->getCoffeeCompiler()->validate($this->script); $this->application->getFenom()->display($this->template, array('base' => $this->base, 'direct' => $this->direct, 'script' => 'public/js/' . $this->script . '.js', 'title' => $this->title, 'styles' => $this->styles)); }
public function boot(Application $application) { $application->getFenom()->addSource($this->getPath('resources fenom')); }
/** * @param array $difference * @return string */ public function getMigrationCode($difference) { return $this->application->getFenom()->render('migration', array('difference' => $difference)); }
/** * if no method was found you can process request by yourself * chain is url pieces delimited by / * you can inject any parameter (thanks to di) * @param Web $web * @param array $chain */ function processChain(Application $application, Web $web, $chain) { $application->getFenom()->display('url', array('base' => $web->getUrl(), 'request' => $web->getUrl(implode('/', $chain)))); }