/** * Gets the 'sonata.seo.page.default' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Sonata\SeoBundle\Seo\SeoPage A Sonata\SeoBundle\Seo\SeoPage instance. */ protected function getSonata_Seo_Page_DefaultService() { $this->services['sonata.seo.page.default'] = $instance = new \Sonata\SeoBundle\Seo\SeoPage(); $instance->setTitle('Sonata Project'); $instance->setMetas(array('name' => array('keywords' => 'foo bar', 'description' => 'The description', 'robots' => 'index, follow'), 'property' => array('og:site_name' => 'Sonata Project Sandbox', 'og:description' => 'A demo of the some rich bundles for your Symfony2 projects'), 'http-equiv' => array('Content-Type' => 'text/html; charset=utf-8'))); $instance->setHtmlAttributes(array('xmlns' => 'http://www.w3.org/1999/xhtml')); $instance->setSeparator(' - '); return $instance; }
/** * Gets the 'sonata.seo.page.default' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Sonata\SeoBundle\Seo\SeoPage A Sonata\SeoBundle\Seo\SeoPage instance. */ protected function getSonata_Seo_Page_DefaultService() { $this->services['sonata.seo.page.default'] = $instance = new \Sonata\SeoBundle\Seo\SeoPage(); $instance->setTitle('Sonata Project'); $instance->setMetas(array()); $instance->setHtmlAttributes(array()); $instance->setSeparator(' - '); return $instance; }