for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) FSi sp. z o.o. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FSi\Bundle\AdminBundle\Controller;
use FSi\Bundle\AdminBundle\Admin\ResourceRepository;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Symfony\Component\HttpFoundation\Request;
* @author Norbert Orzechowicz <[email protected]>
class ResourceController extends ControllerAbstract
{
* @ParamConverter("element", class="\FSi\Bundle\AdminBundle\Admin\ResourceRepository\Element")
* @param \FSi\Bundle\AdminBundle\Admin\ResourceRepository\Element $element
* @param \Symfony\Component\HttpFoundation\Request $request
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* @return \Symfony\Component\HttpFoundation\Response
public function resourceAction(ResourceRepository\Element $element, Request $request)
return $this->handleRequest($element, $request, 'fsi_admin_resource');
}