Download bigfoot / core-bundle / TranslatableLabelController.php - Solve class 'TranslatableLabelController' not found

This file is part of the package bigfoot/core-bundle. Please go to our download page to download this composer package and to solve the problem class 'TranslatableLabelController' not found.
Download bigfoot/core-bundle


<?php namespace Bigfoot\Bundle\CoreBundle\Controller; use Bigfoot\Bundle\CoreBundle\Manager\TranslatableLabelManager; use Doctrine\ORM\Query; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache; use Bigfoot\Bundle\CoreBundle\Controller\CrudController; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Kernel; /** * TranslatableLabel controller. * * @Cache(maxage="0", smaxage="0", public="false") * @Route("/translatable_label") */ class TranslatableLabelController extends CrudController { /** * @return string */ protected function getName() { return 'admin_translatable_label'; } /** * @return string */ protected function getEntity() { return 'BigfootCoreBundle:TranslatableLabel'; } /** * @return array */ protected function getFields() { return array( 'category' => array( 'formatters' => array( 'trans' ), ), 'name', 'value', 'editedAt' => array( 'formatters' => array( 'date' ), ), ); } protected function getFilters() { return array( array( 'placeholder' => 'Category', 'name' => 'category', 'type' => 'repositoryMethod', 'options' => array( 'method' => 'addCategoryFilter', 'choicesMethod' => 'getCategories' ) ), array( 'placeholder' => 'Recherche', 'name' => 'search', 'type' => 'search', 'options' => array( 'properties' => array( 'value', ) ) ), ); } /** * @return string */ protected function getEntityLabelPlural() { return 'bigfoot_core.controller.admin_translatable_label.entity.label_plural'; } protected function getFormType() { return 'bigfoot_bundle_corebundle_translatable_labeltype'; } /** * Lists all TranslatableLabel entities. * * @Route("/", name="admin_translatable_label") */ public function indexAction() { return $this->doIndex(); } /** * Displays a form to edit an existing TranslatableLabel entity. * * @Route("/{id}/edit", name="admin_translatable_label_edit") */ public function editAction(Request $request, $id) { return $this->doEdit($request, $id); } /** * @param $id * @return object */ protected function getFormEntity($id) { $entity = parent::getFormEntity($id); if ($entity) { $entity->setTranslatableLocale($this->container->getParameter('locale')); $this->getEntityManager()->refresh($entity); } return $entity; } /** * Post flush entity * * @param object $entity entity * @param string $action */ protected function postFlush($entity, $action) { /** @var TranslatableLabelManager $labelManager */ $labelManager = $this->get('bigfoot_core.manager.translatable_label'); $labelManager->clearTranslationCache(); } }