예제 #1
0
 protected function getConverter_ManagerService()
 {
     $this->services['converter.manager'] = $instance = new \Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager(array());
     $instance->add($this->get('converter.doctrine.orm'), 0);
     $instance->add($this->get('converter.doctrine.mongodb.odm'), 0);
     return $instance;
 }
 protected function getSensioFrameworkExtra_Converter_ManagerService()
 {
     $this->services['sensio_framework_extra.converter.manager'] = $instance = new \Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager();
     $instance->add($this->get('sensio_framework_extra.converter.doctrine.orm'), 0, 'doctrine.orm');
     $instance->add($this->get('sensio_framework_extra.converter.datetime'), 0, 'datetime');
     return $instance;
 }