Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

When I try to alias my admin, I get an error #25

Closed
gremo opened this issue Feb 14, 2019 · 3 comments
Closed

When I try to alias my admin, I get an error #25

gremo opened this issue Feb 14, 2019 · 3 comments

Comments

@gremo
Copy link
Contributor

gremo commented Feb 14, 2019

Maybe I can't understand how Symfony 4 services works, but I want to create an alias (my admin id/code is still app.admin.experience):

# config/sonata_admin.yaml
# ...
services:
    # service aliases
    App\Admin\ExperienceAdmin: '@app.admin.experience'

You have requested a non-existent service "app.admin.experience".

But, of course exists, and it's auto-configured using this bundle.

@kunicmarko20
Copy link
Owner

kunicmarko20 commented Feb 14, 2019

Since compiler pass is creating the service, my guess is that the service file configuration is done before it. Can't you just remove the admin code and the id of the service will be the class?

@gremo
Copy link
Contributor Author

gremo commented Feb 14, 2019

Yes I know (I did the PR), but it was just a curiosity 👍

@kunicmarko20
Copy link
Owner

Closing then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants