PHP 클래스 Sylius\Bundle\ResourceBundle\Controller\ResourceController

저자: Paweł Jędrzejewski ([email protected])
저자: Saša Stamenković ([email protected])
상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: sylius/sylius 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
findOr404 ( RequestConfiguration $configuration ) : Sylius\Component\Resource\Model\ResourceInterface
isGrantedOr403 ( RequestConfiguration $configuration, string $permission )

메소드 상세

__construct() 공개 메소드

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 applyStateMachineTransitionAction ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\RedirectResponse

createAction() 공개 메소드

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

deleteAction() 공개 메소드

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

findOr404() 보호된 메소드

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

indexAction() 공개 메소드

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

isGrantedOr403() 보호된 메소드

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

showAction() 공개 메소드

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

updateAction() 공개 메소드

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

프로퍼티 상세

$authorizationChecker 보호되어 있는 프로퍼티

protected AuthorizationCheckerInterface,Sylius\Bundle\ResourceBundle\Controller $authorizationChecker
리턴 Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

$eventDispatcher 보호되어 있는 프로퍼티

protected EventDispatcherInterface,Sylius\Bundle\ResourceBundle\Controller $eventDispatcher
리턴 Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface

$factory 보호되어 있는 프로퍼티

protected FactoryInterface,Sylius\Component\Resource\Factory $factory
리턴 Sylius\Component\Resource\Factory\FactoryInterface

$flashHelper 보호되어 있는 프로퍼티

protected FlashHelperInterface,Sylius\Bundle\ResourceBundle\Controller $flashHelper
리턴 Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface

$manager 보호되어 있는 프로퍼티

protected ObjectManager,Doctrine\Common\Persistence $manager
리턴 Doctrine\Common\Persistence\ObjectManager

$metadata 보호되어 있는 프로퍼티

protected MetadataInterface,Sylius\Component\Resource\Metadata $metadata
리턴 Sylius\Component\Resource\Metadata\MetadataInterface

$newResourceFactory 보호되어 있는 프로퍼티

protected NewResourceFactoryInterface,Sylius\Bundle\ResourceBundle\Controller $newResourceFactory
리턴 Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface

$redirectHandler 보호되어 있는 프로퍼티

protected RedirectHandlerInterface,Sylius\Bundle\ResourceBundle\Controller $redirectHandler
리턴 Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface

$repository 보호되어 있는 프로퍼티

protected RepositoryInterface,Sylius\Component\Resource\Repository $repository
리턴 Sylius\Component\Resource\Repository\RepositoryInterface

$requestConfigurationFactory 보호되어 있는 프로퍼티

protected RequestConfigurationFactoryInterface,Sylius\Bundle\ResourceBundle\Controller $requestConfigurationFactory
리턴 Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface

$resourceFormFactory 보호되어 있는 프로퍼티

protected ResourceFormFactoryInterface,Sylius\Bundle\ResourceBundle\Controller $resourceFormFactory
리턴 Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface

$resourcesCollectionProvider 보호되어 있는 프로퍼티

protected ResourcesCollectionProviderInterface,Sylius\Bundle\ResourceBundle\Controller $resourcesCollectionProvider
리턴 Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface

$singleResourceProvider 보호되어 있는 프로퍼티

protected SingleResourceProviderInterface,Sylius\Bundle\ResourceBundle\Controller $singleResourceProvider
리턴 Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface

$stateMachine 보호되어 있는 프로퍼티

protected StateMachineInterface,Sylius\Bundle\ResourceBundle\Controller $stateMachine
리턴 Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface

$viewHandler 보호되어 있는 프로퍼티

protected ViewHandlerInterface,Sylius\Bundle\ResourceBundle\Controller $viewHandler
리턴 Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface