/** * Gets the 'sonata.page.template_manager' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Sonata\PageBundle\Page\TemplateManager A Sonata\PageBundle\Page\TemplateManager instance. */ protected function getSonata_Page_TemplateManagerService() { $this->services['sonata.page.template_manager'] = $instance = new \Sonata\PageBundle\Page\TemplateManager($this->get('templating'), array('error_codes' => array(404 => '_page_internal_error_not_found', 500 => '_page_internal_error_fatal'))); $instance->setAll(array('default' => new \Sonata\PageBundle\Model\Template('default', 'ApplicationSonataPageBundle::demo_layout.html.twig', array('header' => array('name' => 'Header', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 0, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 80)), 'content_top' => array('name' => 'Top content', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 20, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 60)), 'content' => array('name' => 'Main content', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 40, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 40)), 'content_bottom' => array('name' => 'Bottom content', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 60, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 20)), 'footer' => array('name' => 'Footer', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 80, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 0)))), '2columns' => new \Sonata\PageBundle\Model\Template('2 columns layout', 'ApplicationSonataPageBundle::demo_2columns_layout.html.twig', array('header' => array('name' => 'Header', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 0, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 80)), 'content_top' => array('name' => 'Top content', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 20, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 60)), 'left_col' => array('name' => 'Left content', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 40, 'width' => 50, 'height' => 20, 'right' => 50, 'bottom' => 40)), 'right_col' => array('name' => 'Right content', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 50, 'y' => 40, 'width' => 50, 'height' => 20, 'right' => 0, 'bottom' => 40)), 'content_bottom' => array('name' => 'Bottom content', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 60, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 20)), 'footer' => array('name' => 'Footer', 'shared' => false, 'type' => 1, 'blocks' => array(), 'placement' => array('x' => 0, 'y' => 80, 'width' => 100, 'height' => 20, 'right' => 0, 'bottom' => 0)))))); $instance->setDefaultTemplateCode('default'); return $instance; }
/** * Gets the 'sonata.page.template_manager' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Sonata\PageBundle\Page\TemplateManager A Sonata\PageBundle\Page\TemplateManager instance. */ protected function getSonata_Page_TemplateManagerService() { $this->services['sonata.page.template_manager'] = $instance = new \Sonata\PageBundle\Page\TemplateManager($this->get('templating'), array('error_codes' => array())); $instance->setAll(array('default' => new \Sonata\PageBundle\Model\Template('default', 'SonataPageBundle::layout.html.twig'), '2columns' => new \Sonata\PageBundle\Model\Template('2 columns layout', 'SonataPageBundle::2columns_layout.html.twig'))); $instance->setDefaultTemplateCode('default'); return $instance; }