Jump to content

Symfony service registeration error


 Share

Recommended Posts

When i go to the page that loads my symfony service , it tells me there is no such a service with this name registered.

my config.yml file looks like this:

services:
  product_repository:
    class: Foo\Repository\ProductRepository
    arguments: ['@doctrine.dbal.default_connection', '%database_prefix%']

and my module structure is like the attached image. (this is the tutorial module)

Screenshot from 2018-09-17 10-20-35.png

What is really wrong?

Edited by Hessam (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More