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\FixturesBundle\Admin;
use FSi\Bundle\AdminBundle\Doctrine\Admin\CRUDElement;
use FSi\Bundle\AdminSecurityBundle\Admin\SecuredElementInterface;
use FSi\Component\DataGrid\DataGridFactoryInterface;
use FSi\Component\DataSource\DataSourceFactoryInterface;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
class PageSettings extends CRUDElement implements SecuredElementInterface
{
public function isAllowed(AuthorizationCheckerInterface $authorizationChecker)
return $authorizationChecker->isGranted('ROLE_ADMIN');
}
public function getClassName()
return 'FSiFixturesBundle:PageSettings';
public function getId()
return 'page_settings';
public function getName()
return 'Page settings';
protected function initDataGrid(DataGridFactoryInterface $factory)
return null;
protected function initDataSource(DataSourceFactoryInterface $factory)
protected function initForm(FormFactoryInterface $factory, $data = null)