Created
February 13, 2019 13:55
-
-
Save mops1k/530f0a2338f1eb85e8f31aaf1818fc59 to your computer and use it in GitHub Desktop.
Sonata Admin PHPStorm Template
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
<?php | |
#parse("PHP File Header.php") | |
#if (${NAMESPACE})namespace ${NAMESPACE};#end | |
use Sonata\AdminBundle\Admin\AbstractAdmin; | |
use Sonata\AdminBundle\Datagrid\DatagridMapper; | |
use Sonata\AdminBundle\Datagrid\ListMapper; | |
use Sonata\AdminBundle\Form\FormMapper; | |
#parse('PHP Class Doc Comment.php') | |
class ${NAME} extends AbstractAdmin | |
{ | |
/** | |
* @inheritdoc | |
*/ | |
protected function configureFormFields(FormMapper ${DS}formMapper) | |
{ | |
parent::configureFormFields(${DS}formMapper); | |
} | |
/** | |
* @inheritdoc | |
*/ | |
protected function configureDatagridFilters(DatagridMapper ${DS}datagridMapper) | |
{ | |
parent::configureDatagridFilters(${DS}datagridMapper); | |
} | |
/** | |
* @inheritdoc | |
*/ | |
protected function configureListFields(ListMapper ${DS}listMapper) | |
{ | |
parent::configureListFields(${DS}listMapper); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment