Bootstrap.php 507 B

12345678910111213141516171819202122232425
  1. <?php
  2. use Yaf\Application;
  3. use Yaf\Bootstrap_Abstract as AbstractBootstrap;
  4. use Yaf\Dispatcher;
  5. use eYaf\Layout;
  6. class Bootstrap extends AbstractBootstrap
  7. {
  8. /**
  9. * @var Yaf\Config_Abstract
  10. */
  11. private $config = null;
  12. public function _initConfig ()
  13. {
  14. $this->config = Application::app()->getConfig();
  15. }
  16. public function _initLayout (Dispatcher $dispatcher)
  17. {
  18. $dispatcher->setView(new Layout($this->config->get('application.layout.directory')));
  19. }
  20. }