public function refillAction($plugin, $field, Request $request)
    {
        /* @var $refiller RefillerInterface */
        if (!($refiller = $this->get('anime_db.plugin.refiller')->getPlugin($plugin))) {
            throw $this->createNotFoundException('Plugin \''.$plugin.'\' is not found');
        }
        $item = $this->createForm('entity_item', new Item())
            ->handleRequest($request)
            ->getData();

        $form = $this->getForm($field, clone $item, $refiller->refill($item, $field));

        return $this->render('AnimeDbCatalogBundle:Refill:refill.html.twig', [
            'field' => $field,
            'form' => $form->createView(),
        ]);
    }
public function refillAction($plugin, $field, Request $request)
    {
        /* @var $refiller RefillerInterface */
        if (!($refiller = $this->get('anime_db.plugin.refiller')->getPlugin($plugin))) {
            throw $this->createNotFoundException('Plugin \''.$plugin.'\' is not found');
        }
        $item = $this->createForm('entity_item', new Item())
            ->handleRequest($request)
            ->getData();

        $form = $this->getForm($field, clone $item, $refiller->refill($item, $field));

        return $this->render('AnimeDbCatalogBundle:Refill:refill.html.twig', [
            'field' => $field,
            'form' => $form->createView(),
        ]);
    }
public function refillAction ( $ plugin , $ field , Request $ request ) { /* @var $refiller RefillerInterface */ if ( ! ( $ refiller = $ this -> get ( 'anime_db.plugin.refiller' ) -> getPlugin ( $ plugin ) ) ) { throw $ this -> createNotFoundException ( 'Plugin \'' . $ plugin . '\' is not found' ) ; } $ item = $ this -> createForm ( 'entity_item' , new Item ( ) ) -> handleRequest ( $ request ) -> getData ( ) ; $ form = $ this -> getForm ( $ field , clone $ item , $ refiller -> refill ( $ item , $ field ) ) ; return $ this -> render ( 'AnimeDbCatalogBundle:Refill:refill.html.twig' , [ 'field' => $ field , 'form' => $ form -> createView ( ) , ] ) ; }
Refill item.

@param string $plugin
@param string $field
@param Request $request

@return Response
Refill item .