PHP Класс spec\Sylius\Bundle\ResourceBundle\Routing\ResourceLoaderSpec

Автор: Paweł Jędrzejewski ([email protected])
Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
it_configures_grid_for_index_action_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute )
it_excludes_specific_routes_if_configured ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute )
it_generates_api_routing_based_on_resource_configuration ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_based_on_resource_configuration ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_for_a_section ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_with_custom_form_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_with_custom_path_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_with_custom_permission ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_with_custom_redirect_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_with_custom_templates_namespace ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_routing_with_custom_variables ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_generates_urlized_paths_for_resources_with_multiple_words_in_name ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
it_includes_only_specific_routes_if_configured ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute )
it_is_a_Symfony_routing_loader ( )
it_is_initializable ( )
it_processes_configuration_and_throws_exception_if_invalid ( )
it_supports_sylius_resource_type ( )
it_throws_an_exception_if_both_excluded_and_includes_routes_configured ( )
it_throws_an_exception_if_invalid_resource_configured ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry )
let ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory )

Описание методов

it_configures_grid_for_index_action_if_specified() публичный Метод

public it_configures_grid_for_index_action_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route

it_excludes_specific_routes_if_configured() публичный Метод

public it_excludes_specific_routes_if_configured ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route

it_generates_api_routing_based_on_resource_configuration() публичный Метод

public it_generates_api_routing_based_on_resource_configuration ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_based_on_resource_configuration() публичный Метод

public it_generates_routing_based_on_resource_configuration ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_for_a_section() публичный Метод

public it_generates_routing_for_a_section ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_with_custom_form_if_specified() публичный Метод

public it_generates_routing_with_custom_form_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_with_custom_path_if_specified() публичный Метод

public it_generates_routing_with_custom_path_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_with_custom_permission() публичный Метод

public it_generates_routing_with_custom_permission ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_with_custom_redirect_if_specified() публичный Метод

public it_generates_routing_with_custom_redirect_if_specified ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_with_custom_templates_namespace() публичный Метод

public it_generates_routing_with_custom_templates_namespace ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_routing_with_custom_variables() публичный Метод

public it_generates_routing_with_custom_variables ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_generates_urlized_paths_for_resources_with_multiple_words_in_name() публичный Метод

public it_generates_urlized_paths_for_resources_with_multiple_words_in_name ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $showRoute, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute, Symfony\Component\Routing\Route $updateRoute, Symfony\Component\Routing\Route $deleteRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$showRoute Symfony\Component\Routing\Route
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route
$updateRoute Symfony\Component\Routing\Route
$deleteRoute Symfony\Component\Routing\Route

it_includes_only_specific_routes_if_configured() публичный Метод

public it_includes_only_specific_routes_if_configured ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory, RouteCollection $routeCollection, Symfony\Component\Routing\Route $indexRoute, Symfony\Component\Routing\Route $createRoute )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface
$routeCollection Symfony\Component\Routing\RouteCollection
$indexRoute Symfony\Component\Routing\Route
$createRoute Symfony\Component\Routing\Route

it_is_a_Symfony_routing_loader() публичный Метод

it_is_initializable() публичный Метод

public it_is_initializable ( )

it_processes_configuration_and_throws_exception_if_invalid() публичный Метод

it_supports_sylius_resource_type() публичный Метод

it_throws_an_exception_if_both_excluded_and_includes_routes_configured() публичный Метод

it_throws_an_exception_if_invalid_resource_configured() публичный Метод

public it_throws_an_exception_if_invalid_resource_configured ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface

let() публичный Метод

public let ( Sylius\Component\Resource\Metadata\RegistryInterface $resourceRegistry, Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface $routeFactory )
$resourceRegistry Sylius\Component\Resource\Metadata\RegistryInterface
$routeFactory Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface