PHP Class spec\Sylius\Bundle\ResourceBundle\Controller\ResourceControllerSpec

Author: Paweł Jędrzejewski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Mostrar archivo Open project: sylius/sylius

Public Methods

Method Description
it_applies_state_machine_transition_on_resource_and_returns_200_for_non_html_requests ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $response )
it_applies_state_machine_transition_to_resource_and_redirects_for_html_request ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_applies_state_machine_transition_to_updated_resource_if_configured ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_deletes_a_resource_and_redirects_to_index_by_for_html_request ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_deletes_a_resource_and_returns_204_for_non_html_requests ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $response )
it_does_not_apply_state_machine_transition_on_resource_and_redirects_for_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_does_not_apply_state_machine_transition_on_resource_if_not_applicable_and_returns_400_bad_request ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
it_does_not_apply_state_machine_transition_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
it_does_not_create_the_resource_and_redirects_to_index_for_html_requests_stopped_via_events ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_does_not_create_the_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Form $form, Request $request, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event )
it_does_not_delete_a_resource_and_redirects_to_index_for_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_does_not_delete_a_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
it_does_not_update_the_resource_and_redirects_to_resource_for_html_request_if_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_does_not_update_the_resource_throws_a_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Form $form, Request $request )
it_extends_base_Symfony_controller ( )
it_is_initializable ( )
it_redirects_to_newly_created_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Form $form, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_redirects_to_updated_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
it_returns_a_html_response_for_creating_new_resource_form ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
it_returns_a_html_response_for_invalid_form_during_resource_creation ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
it_returns_a_html_response_for_invalid_form_during_resource_update ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
it_returns_a_html_response_for_updating_resource_form ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
it_returns_a_non_html_response_for_correctly_created_resources ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Form $form, Request $request, Response $response )
it_returns_a_non_html_response_for_correctly_updated_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Form $form, Request $request, Response $response )
it_returns_a_non_html_response_for_invalid_form_during_resource_creation ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Request $request, Response $response )
it_returns_a_non_html_response_for_invalid_form_during_resource_update ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Request $request, Response $response )
it_returns_a_response_for_html_view_of_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Request $request, Response $response )
it_returns_a_response_for_html_view_of_paginated_resources ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface $resourcesCollectionProvider, Sylius\Component\Resource\Model\ResourceInterface $resource1, Sylius\Component\Resource\Model\ResourceInterface $resource2, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Request $request, Response $response )
it_returns_a_response_for_non_html_view_of_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Request $request, Response $response )
it_throws_a_403_exception_if_csrf_token_is_invalid_during_delete_action ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
it_throws_a_403_exception_if_user_is_unauthorized_to_apply_state_machine_transition_on_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
it_throws_a_403_exception_if_user_is_unauthorized_to_create_a_new_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
it_throws_a_403_exception_if_user_is_unauthorized_to_delete_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
it_throws_a_403_exception_if_user_is_unauthorized_to_edit_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
it_throws_a_403_exception_if_user_is_unauthorized_to_view_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
it_throws_a_403_exception_if_user_is_unauthorized_to_view_an_index_of_resources ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
it_throws_a_404_exception_if_resource_for_deletion_is_not_found_based_on_configuration ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
it_throws_a_404_exception_if_resource_is_not_found_based_on_configuration ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
it_throws_a_404_exception_if_resource_is_not_found_when_trying_to_apply_state_machine_transition ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
it_throws_a_404_exception_if_resource_to_update_is_not_found_based_on_configuration ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
let ( 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 $resourcesCollectionProvider, 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, Symfony\Component\DependencyInjection\ContainerInterface $container )

Private Methods

Method Description
getViewComparingCallback ( FOS\RestBundle\View\View $expectedView )
nullifyDates ( FOS\RestBundle\View\View $view )
unwrapIfCollaborator ( mixed $value ) : mixed
unwrapViewData ( FOS\RestBundle\View\View $view )

Method Details

it_applies_state_machine_transition_on_resource_and_returns_200_for_non_html_requests() public method

public it_applies_state_machine_transition_on_resource_and_returns_200_for_non_html_requests ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$manager Doctrine\Common\Persistence\ObjectManager
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_applies_state_machine_transition_to_resource_and_redirects_for_html_request() public method

public it_applies_state_machine_transition_to_resource_and_redirects_for_html_request ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$manager Doctrine\Common\Persistence\ObjectManager
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_applies_state_machine_transition_to_updated_resource_if_configured() public method

public it_applies_state_machine_transition_to_updated_resource_if_configured ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$manager Doctrine\Common\Persistence\ObjectManager
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_deletes_a_resource_and_redirects_to_index_by_for_html_request() public method

public it_deletes_a_resource_and_redirects_to_index_by_for_html_request ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$csrfTokenManager Symfony\Component\Security\Csrf\CsrfTokenManagerInterface
$container Symfony\Component\DependencyInjection\ContainerInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_deletes_a_resource_and_returns_204_for_non_html_requests() public method

public it_deletes_a_resource_and_returns_204_for_non_html_requests ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$csrfTokenManager Symfony\Component\Security\Csrf\CsrfTokenManagerInterface
$container Symfony\Component\DependencyInjection\ContainerInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_does_not_apply_state_machine_transition_on_resource_and_redirects_for_html_requests_stopped_via_event() public method

public it_does_not_apply_state_machine_transition_on_resource_and_redirects_for_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$manager Doctrine\Common\Persistence\ObjectManager
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_does_not_apply_state_machine_transition_on_resource_if_not_applicable_and_returns_400_bad_request() public method

public it_does_not_apply_state_machine_transition_on_resource_if_not_applicable_and_returns_400_bad_request ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$objectManager Doctrine\Common\Persistence\ObjectManager
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request

it_does_not_apply_state_machine_transition_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event() public method

public it_does_not_apply_state_machine_transition_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$objectManager Doctrine\Common\Persistence\ObjectManager
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request

it_does_not_create_the_resource_and_redirects_to_index_for_html_requests_stopped_via_events() public method

public it_does_not_create_the_resource_and_redirects_to_index_for_html_requests_stopped_via_events ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$newResource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_does_not_create_the_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event() public method

public it_does_not_create_the_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Form $form, Request $request, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$newResource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$form Symfony\Component\Form\Form
$request Symfony\Component\HttpFoundation\Request
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent

it_does_not_delete_a_resource_and_redirects_to_index_for_html_requests_stopped_via_event() public method

public it_does_not_delete_a_resource_and_redirects_to_index_for_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$csrfTokenManager Symfony\Component\Security\Csrf\CsrfTokenManagerInterface
$container Symfony\Component\DependencyInjection\ContainerInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_does_not_delete_a_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event() public method

public it_does_not_delete_a_resource_and_throws_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$csrfTokenManager Symfony\Component\Security\Csrf\CsrfTokenManagerInterface
$container Symfony\Component\DependencyInjection\ContainerInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request

it_does_not_update_the_resource_and_redirects_to_resource_for_html_request_if_stopped_via_event() public method

public it_does_not_update_the_resource_and_redirects_to_resource_for_html_request_if_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$manager Doctrine\Common\Persistence\ObjectManager
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_does_not_update_the_resource_throws_a_http_exception_for_non_html_requests_stopped_via_event() public method

public it_does_not_update_the_resource_throws_a_http_exception_for_non_html_requests_stopped_via_event ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Form $form, Request $request )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$manager Doctrine\Common\Persistence\ObjectManager
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$form Symfony\Component\Form\Form
$request Symfony\Component\HttpFoundation\Request

it_extends_base_Symfony_controller() public method

it_is_initializable() public method

public it_is_initializable ( )

it_redirects_to_newly_created_resource() public method

public it_redirects_to_newly_created_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Form $form, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$newResource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$form Symfony\Component\Form\Form
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_redirects_to_updated_resource() public method

public it_redirects_to_updated_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface $redirectHandler, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request, Response $redirectResponse )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$manager Doctrine\Common\Persistence\ObjectManager
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$redirectHandler Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request
$redirectResponse Symfony\Component\HttpFoundation\Response

it_returns_a_html_response_for_creating_new_resource_form() public method

public it_returns_a_html_response_for_creating_new_resource_form ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$newResource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$formView Symfony\Component\Form\FormView
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_html_response_for_invalid_form_during_resource_creation() public method

public it_returns_a_html_response_for_invalid_form_during_resource_creation ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$newResource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$formView Symfony\Component\Form\FormView
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_html_response_for_invalid_form_during_resource_update() public method

public it_returns_a_html_response_for_invalid_form_during_resource_update ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$formView Symfony\Component\Form\FormView
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_html_response_for_updating_resource_form() public method

public it_returns_a_html_response_for_updating_resource_form ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Symfony\Component\Form\FormView $formView, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$formView Symfony\Component\Form\FormView
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_non_html_response_for_correctly_created_resources() public method

public it_returns_a_non_html_response_for_correctly_created_resources ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface $stateMachine, Form $form, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$newResource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$stateMachine Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface
$form Symfony\Component\Form\Form
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_non_html_response_for_correctly_updated_resource() public method

public it_returns_a_non_html_response_for_correctly_updated_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Doctrine\Common\Persistence\ObjectManager $manager, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Form $form, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$manager Doctrine\Common\Persistence\ObjectManager
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$form Symfony\Component\Form\Form
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_non_html_response_for_invalid_form_during_resource_creation() public method

public it_returns_a_non_html_response_for_invalid_form_during_resource_creation ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Factory\FactoryInterface $factory, Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface $newResourceFactory, Sylius\Component\Resource\Model\ResourceInterface $newResource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$factory Sylius\Component\Resource\Factory\FactoryInterface
$newResourceFactory Sylius\Bundle\ResourceBundle\Controller\NewResourceFactoryInterface
$newResource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_non_html_response_for_invalid_form_during_resource_update() public method

public it_returns_a_non_html_response_for_invalid_form_during_resource_update ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface $resourceFormFactory, Form $form, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$resourceFormFactory Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface
$form Symfony\Component\Form\Form
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_response_for_html_view_of_a_single_resource() public method

public it_returns_a_response_for_html_view_of_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_response_for_html_view_of_paginated_resources() public method

public it_returns_a_response_for_html_view_of_paginated_resources ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface $resourcesCollectionProvider, Sylius\Component\Resource\Model\ResourceInterface $resource1, Sylius\Component\Resource\Model\ResourceInterface $resource2, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$resourcesCollectionProvider Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface
$resource1 Sylius\Component\Resource\Model\ResourceInterface
$resource2 Sylius\Component\Resource\Model\ResourceInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_returns_a_response_for_non_html_view_of_single_resource() public method

public it_returns_a_response_for_non_html_view_of_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface $viewHandler, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Request $request, Response $response )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$viewHandler Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

it_throws_a_403_exception_if_csrf_token_is_invalid_during_delete_action() public method

public it_throws_a_403_exception_if_csrf_token_is_invalid_during_delete_action ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider, Sylius\Component\Resource\Model\ResourceInterface $resource, Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface $flashHelper, Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface $eventDispatcher, Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager, Symfony\Component\DependencyInjection\ContainerInterface $container, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, Request $request )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface
$resource Sylius\Component\Resource\Model\ResourceInterface
$flashHelper Sylius\Bundle\ResourceBundle\Controller\FlashHelperInterface
$eventDispatcher Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface
$csrfTokenManager Symfony\Component\Security\Csrf\CsrfTokenManagerInterface
$container Symfony\Component\DependencyInjection\ContainerInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$request Symfony\Component\HttpFoundation\Request

it_throws_a_403_exception_if_user_is_unauthorized_to_apply_state_machine_transition_on_resource() public method

public it_throws_a_403_exception_if_user_is_unauthorized_to_apply_state_machine_transition_on_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

it_throws_a_403_exception_if_user_is_unauthorized_to_create_a_new_resource() public method

public it_throws_a_403_exception_if_user_is_unauthorized_to_create_a_new_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

it_throws_a_403_exception_if_user_is_unauthorized_to_delete_a_single_resource() public method

public it_throws_a_403_exception_if_user_is_unauthorized_to_delete_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

it_throws_a_403_exception_if_user_is_unauthorized_to_edit_a_single_resource() public method

public it_throws_a_403_exception_if_user_is_unauthorized_to_edit_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

it_throws_a_403_exception_if_user_is_unauthorized_to_view_a_single_resource() public method

public it_throws_a_403_exception_if_user_is_unauthorized_to_view_a_single_resource ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

it_throws_a_403_exception_if_user_is_unauthorized_to_view_an_index_of_resources() public method

public it_throws_a_403_exception_if_user_is_unauthorized_to_view_an_index_of_resources ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface

it_throws_a_404_exception_if_resource_for_deletion_is_not_found_based_on_configuration() public method

public it_throws_a_404_exception_if_resource_for_deletion_is_not_found_based_on_configuration ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface

it_throws_a_404_exception_if_resource_is_not_found_based_on_configuration() public method

public it_throws_a_404_exception_if_resource_is_not_found_based_on_configuration ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface

it_throws_a_404_exception_if_resource_is_not_found_when_trying_to_apply_state_machine_transition() public method

public it_throws_a_404_exception_if_resource_is_not_found_when_trying_to_apply_state_machine_transition ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface

it_throws_a_404_exception_if_resource_to_update_is_not_found_based_on_configuration() public method

public it_throws_a_404_exception_if_resource_to_update_is_not_found_based_on_configuration ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface $requestConfigurationFactory, RequestConfiguration $configuration, Request $request, Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface $authorizationChecker, Sylius\Component\Resource\Repository\RepositoryInterface $repository, Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface $singleResourceProvider )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$requestConfigurationFactory Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$request Symfony\Component\HttpFoundation\Request
$authorizationChecker Sylius\Bundle\ResourceBundle\Controller\AuthorizationCheckerInterface
$repository Sylius\Component\Resource\Repository\RepositoryInterface
$singleResourceProvider Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface

let() public method

public let ( 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 $resourcesCollectionProvider, 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, Symfony\Component\DependencyInjection\ContainerInterface $container )
$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
$resourcesCollectionProvider 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
$container Symfony\Component\DependencyInjection\ContainerInterface