コード例 #1
0
 /**
  * @param \FSi\Bundle\AdminBundle\Admin\Context\Request\HandlerInterface $handler
  * @param \FSi\Bundle\AdminBundle\Doctrine\Admin\ResourceElement $element
  * @param \FSi\Bundle\ResourceRepositoryBundle\Repository\MapBuilder $builder
  * @param \FSi\Bundle\AdminBundle\Admin\ResourceRepository\ResourceFormBuilder $resourceFormBuilder
  * @param \Symfony\Component\Form\Form $form
  */
 function let($handler, $element, $builder, $resourceFormBuilder, $form)
 {
     $builder->getMap()->willReturn(array('resources' => array()));
     $element->getResourceFormOptions()->willReturn(array());
     $element->getKey()->willReturn('resources');
     $resourceFormBuilder->build($element)->willReturn($form);
     $this->beConstructedWith(array($handler), $resourceFormBuilder);
     $this->setElement($element);
 }
 /**
  * {@inheritdoc}
  */
 public function getSuccessRouteParameters()
 {
     return $this->appendLocaleParameter(parent::getSuccessRouteParameters());
 }