PHP Class Sylius\Bundle\ResourceBundle\Controller\ResourceController

Author: Paweł Jędrzejewski ([email protected])
Author: Saša Stamenković ([email protected])
Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
ファイルを表示 Open project: sylius/sylius Class Usage Examples

Protected Properties

Property Type Description
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$manager Doctrine\Common\Persistence\ObjectManager
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$resourcesCollectionProvider Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface

Public Methods

Method Description
__construct ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface $resourcesFinder, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine )
applyStateMachineTransitionAction ( Request $request ) : RedirectResponse
createAction ( Request $request ) : Response
deleteAction ( Request $request ) : Response
indexAction ( Request $request ) : Response
showAction ( Request $request ) : Response
updateAction ( Request $request ) : Response

Protected Methods

Method Description
findOr404 ( RequestConfiguration $configuration ) : Sylius\Component\Resource\Model\ResourceInterface
isGrantedOr403 ( RequestConfiguration $configuration, string $permission )

Method Details

__construct() public method

public __construct ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface $resourcesFinder, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$manager Doctrine\Common\Persistence\ObjectManager
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resourcesFinder Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface

applyStateMachineTransitionAction() public method

public applyStateMachineTransitionAction ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse

createAction() public method

public createAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

deleteAction() public method

public deleteAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

findOr404() protected method

protected findOr404 ( RequestConfiguration $configuration ) : Sylius\Component\Resource\Model\ResourceInterface
$configuration RequestConfiguration
return Sylius\Component\Resource\Model\ResourceInterface

indexAction() public method

public indexAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

isGrantedOr403() protected method

protected isGrantedOr403 ( RequestConfiguration $configuration, string $permission )
$configuration RequestConfiguration
$permission string

showAction() public method

public showAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

updateAction() public method

public updateAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

Property Details

$authorizationChecker protected_oe property

protected AuthorizationCheckerInterface,Sylius\Bundle\ResourceBundle\Controller $authorizationChecker
return Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

$eventDispatcher protected_oe property

protected EventDispatcherInterface,Sylius\Bundle\ResourceBundle\Controller $eventDispatcher
return Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface

$factory protected_oe property

protected FactoryInterface,Sylius\Component\Resource\Factory $factory
return Sylius\Component\Resource\Factory\FactoryInterface

$flashHelper protected_oe property

protected FlashHelperInterface,Sylius\Bundle\ResourceBundle\Controller $flashHelper
return Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface

$manager protected_oe property

protected ObjectManager,Doctrine\Common\Persistence $manager
return Doctrine\Common\Persistence\ObjectManager

$metadata protected_oe property

protected MetadataInterface,Sylius\Component\Resource\Metadata $metadata
return Sylius\Component\Resource\Metadata\MetadataInterface

$newResourceFactory protected_oe property

protected NewResourceFactoryInterface,Sylius\Bundle\ResourceBundle\Controller $newResourceFactory
return Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface

$redirectHandler protected_oe property

protected RedirectHandlerInterface,Sylius\Bundle\ResourceBundle\Controller $redirectHandler
return Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface

$repository protected_oe property

protected RepositoryInterface,Sylius\Component\Resource\Repository $repository
return Sylius\Component\Resource\Repository\RepositoryInterface

$requestConfigurationFactory protected_oe property

protected RequestConfigurationFactoryInterface,Sylius\Bundle\ResourceBundle\Controller $requestConfigurationFactory
return Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface

$resourceFormFactory protected_oe property

protected ResourceFormFactoryInterface,Sylius\Bundle\ResourceBundle\Controller $resourceFormFactory
return Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface

$resourcesCollectionProvider protected_oe property

protected ResourcesCollectionProviderInterface,Sylius\Bundle\ResourceBundle\Controller $resourcesCollectionProvider
return Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface

$singleResourceProvider protected_oe property

protected SingleResourceProviderInterface,Sylius\Bundle\ResourceBundle\Controller $singleResourceProvider
return Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface

$stateMachine protected_oe property

protected StateMachineInterface,Sylius\Bundle\ResourceBundle\Controller $stateMachine
return Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface

$viewHandler protected_oe property

protected ViewHandlerInterface,Sylius\Bundle\ResourceBundle\Controller $viewHandler
return Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface