Skip to content
This repository was archived by the owner on Nov 30, 2017. It is now read-only.
This repository was archived by the owner on Nov 30, 2017. It is now read-only.

Cannot load resource "alias: app.book #393

@abhinavkumar940

Description

@abhinavkumar940

I am on Symfony v2.8.0

app/AppKernel.php

new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(),

app/config/config.yml

sylius_resource:
    resources:
        app.book:
            classes:
                model: AppBundle\Entity\Book

app/config/routing.yml

app_book:
    resource: |
        alias: app.book
    type: sylius.resource_api

And then when I do
./bin/console debug:router

I get

[Symfony\Component\Config\Exception\FileLoaderLoadException]  
Cannot load resource "alias: app.book                         
".       

Please note that the exception is a FileLoaderLoadException I'd assume that it hasn't even reached Sylus yet.

Would love to provide a PR if somebody gives me a direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions