forked from sonata-project/SonataAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
705 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,12 @@ | |
use Doctrine\Common\Util\ClassUtils; | ||
use Sonata\AdminBundle\Datagrid\Pager; | ||
|
||
/** | ||
* Class Admin | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
abstract class Admin implements AdminInterface, DomainObjectInterface | ||
{ | ||
const CONTEXT_MENU = 'menu'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,12 @@ | |
|
||
use Knp\Menu\ItemInterface as MenuItemInterface; | ||
|
||
/** | ||
* Class AdminExtension | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
abstract class AdminExtension implements AdminExtensionInterface | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Sonata package. | ||
* | ||
|
@@ -21,7 +22,10 @@ | |
use Knp\Menu\ItemInterface as MenuItemInterface; | ||
|
||
/** | ||
* Interface AdminExtensionInterface | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface AdminExtensionInterface | ||
{ | ||
|
@@ -41,7 +45,7 @@ public function configureListFields(ListMapper $list); | |
public function configureDatagridFilters(DatagridMapper $filter); | ||
|
||
/** | ||
* @param ShowMapper $filter | ||
* @param ShowMapper $show | ||
*/ | ||
public function configureShowFields(ShowMapper $show); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Sonata package. | ||
* | ||
|
@@ -18,6 +19,12 @@ | |
use Sonata\AdminBundle\Util\FormViewIterator; | ||
use Sonata\AdminBundle\Util\FormBuilderIterator; | ||
|
||
/** | ||
* Class AdminHelper | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class AdminHelper | ||
{ | ||
protected $pool; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,12 @@ | |
use Symfony\Component\Translation\TranslatorInterface; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
/** | ||
* Interface AdminInterface | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface AdminInterface | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Sonata package. | ||
* | ||
|
@@ -8,8 +9,15 @@ | |
* file that was distributed with this source code. | ||
* | ||
*/ | ||
|
||
namespace Sonata\AdminBundle\Admin; | ||
|
||
/** | ||
* Class FieldDescriptionCollection | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class FieldDescriptionCollection implements \ArrayAccess, \Countable | ||
{ | ||
protected $elements = array(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,14 @@ | |
|
||
namespace Sonata\AdminBundle\Admin; | ||
|
||
/** | ||
* Interface FieldDescriptionInterface | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface FieldDescriptionInterface | ||
{ | ||
|
||
/** | ||
* set the field name | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,12 @@ | |
|
||
use Symfony\Component\DependencyInjection\ContainerInterface; | ||
|
||
/** | ||
* Class Pool | ||
* | ||
* @package Sonata\AdminBundle\Admin | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class Pool | ||
{ | ||
protected $container = null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,15 @@ | |
use Sonata\BlockBundle\Block\BlockContextInterface; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | ||
use Sonata\AdminBundle\Form\FormMapper; | ||
use Sonata\CoreBundle\Validator\ErrorElement; | ||
use Sonata\AdminBundle\Admin\Pool; | ||
use Sonata\BlockBundle\Model\BlockInterface; | ||
use Sonata\BlockBundle\Block\BaseBlockService; | ||
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | ||
|
||
/** | ||
* Class AdminListBlockService | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* @package Sonata\AdminBundle\Block | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class AdminListBlockService extends BaseBlockService | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,19 +18,16 @@ | |
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | ||
|
||
use Sonata\AdminBundle\Form\FormMapper; | ||
use Sonata\CoreBundle\Validator\ErrorElement; | ||
use Sonata\AdminBundle\Admin\Pool; | ||
|
||
use Sonata\BlockBundle\Model\BlockInterface; | ||
use Sonata\BlockBundle\Block\BaseBlockService; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | ||
use Symfony\Component\Security\Core\Exception\AccessDeniedException; | ||
|
||
/** | ||
* Class AdminSearchBlockService | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* @package Sonata\AdminBundle\Block | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class AdminSearchBlockService extends BaseBlockService | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ | |
use Sonata\BlockBundle\Block\BlockContextInterface; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | ||
use Sonata\CoreBundle\Validator\ErrorElement; | ||
use Sonata\AdminBundle\Admin\Pool; | ||
use Sonata\BlockBundle\Model\BlockInterface; | ||
use Sonata\BlockBundle\Block\BaseBlockService; | ||
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | ||
|
||
/** | ||
* Class AdminStatsBlockService | ||
* | ||
* @package Sonata\AdminBundle\Block | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class AdminStatsBlockService extends BaseBlockService | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,12 @@ | |
use Sonata\AdminBundle\Admin\FieldDescriptionInterface; | ||
use Sonata\AdminBundle\Admin\AdminInterface; | ||
|
||
/** | ||
* Interface BuilderInterface | ||
* | ||
* @package Sonata\AdminBundle\Builder | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface BuilderInterface | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,14 @@ | |
use Sonata\AdminBundle\Admin\AdminInterface; | ||
use Sonata\AdminBundle\Datagrid\DatagridInterface; | ||
|
||
/** | ||
* Interface DatagridBuilderInterface | ||
* | ||
* @package Sonata\AdminBundle\Builder | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface DatagridBuilderInterface extends BuilderInterface | ||
{ | ||
|
||
/** | ||
* @abstract | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,14 @@ | |
use Symfony\Component\Form\FormBuilder; | ||
use Symfony\Component\Form\FormFactoryInterface; | ||
|
||
/** | ||
* Interface FormContractorInterface | ||
* | ||
* @package Sonata\AdminBundle\Builder | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface FormContractorInterface extends BuilderInterface | ||
{ | ||
|
||
/** | ||
* @abstract | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,12 @@ | |
use Sonata\AdminBundle\Admin\AdminInterface; | ||
use Sonata\AdminBundle\Admin\FieldDescriptionCollection; | ||
|
||
/** | ||
* Interface ListBuilderInterface | ||
* | ||
* @package Sonata\AdminBundle\Builder | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface ListBuilderInterface extends BuilderInterface | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,14 @@ | |
use Sonata\AdminBundle\Admin\AdminInterface; | ||
use Sonata\AdminBundle\Route\RouteCollection; | ||
|
||
/** | ||
* Interface RouteBuilderInterface | ||
* | ||
* @package Sonata\AdminBundle\Builder | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface RouteBuilderInterface | ||
{ | ||
|
||
/** | ||
* @param \Sonata\AdminBundle\Admin\AdminInterface $admin | ||
* @param \Sonata\AdminBundle\Route\RouteCollection $collection | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,12 @@ | |
use Sonata\AdminBundle\Admin\AdminInterface; | ||
use Sonata\AdminBundle\Admin\FieldDescriptionCollection; | ||
|
||
/** | ||
* Interface ShowBuilderInterface | ||
* | ||
* @package Sonata\AdminBundle\Builder | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
interface ShowBuilderInterface extends BuilderInterface | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,16 @@ | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Output\Output; | ||
use Symfony\Component\ClassLoader\ClassCollectionLoader; | ||
|
||
/** | ||
* Class CreateClassCacheCommand | ||
* | ||
* @package Sonata\AdminBundle\Command | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class CreateClassCacheCommand extends ContainerAwareCommand | ||
{ | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,15 @@ | |
use Symfony\Component\Console\Input\InputArgument; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Output\Output; | ||
|
||
/** | ||
* Class ExplainAdminCommand | ||
* | ||
* @package Sonata\AdminBundle\Command | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class ExplainAdminCommand extends ContainerAwareCommand | ||
{ | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,11 @@ | |
use Symfony\Component\Console\Question\ConfirmationQuestion; | ||
|
||
/** | ||
* @author Marek Stipek <[email protected]> | ||
* @author Simon Cosandey <[email protected]> | ||
* Class GenerateAdminCommand | ||
* | ||
* @package Sonata\AdminBundle\Command | ||
* @author Marek Stipek <[email protected]> | ||
* @author Simon Cosandey <[email protected]> | ||
*/ | ||
class GenerateAdminCommand extends ContainerAwareCommand | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,14 @@ | |
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Output\Output; | ||
|
||
use Sonata\AdminBundle\Util\ObjectAclManipulatorInterface; | ||
|
||
/** | ||
* Class GenerateObjectAclCommand | ||
* | ||
* @package Sonata\AdminBundle\Command | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class GenerateObjectAclCommand extends ContainerAwareCommand | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,13 @@ | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Output\Output; | ||
|
||
/** | ||
* Class ListAdminCommand | ||
* | ||
* @package Sonata\AdminBundle\Command | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class ListAdminCommand extends ContainerAwareCommand | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,14 @@ | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Output\Output; | ||
|
||
use Sonata\AdminBundle\Util\AdminAclManipulatorInterface; | ||
|
||
/** | ||
* Class SetupAclCommand | ||
* | ||
* @package Sonata\AdminBundle\Command | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class SetupAclCommand extends ContainerAwareCommand | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,12 @@ | |
|
||
namespace Sonata\AdminBundle\Command; | ||
|
||
/** | ||
* Class Validators | ||
* | ||
* @package Sonata\AdminBundle\Command | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class Validators | ||
{ | ||
/** | ||
|
Oops, something went wrong.