Symfony service attem -


I am trying to configure services in symfony2:

services.yml

  Parameters: trendio.user_provider.class: Trendo \ DeliBandle \ Tridento User Provider TrendOestate. Class:% trendio.rest.backend_ip%, @ serializer, @ buzz]    Pre> 

I got an error:

  ClassNotFoundException: /var/www/deliv/app/cache/dev/appDevDebugProjectContainer.php In Namesplace "Trindo \ DeliBold \ Services" in line 3176 The class tried to load "trendyrest". Do you need to "use" it to another? Name Location?  

TrendioRest.php

  & lt ;? Php namespace Trendo \ DeliBall \ Services; Class Trentirest {...}  

But if I take the class to the top-level bundle name space (Trindio \ Deli Bundle), the service works correctly class sub Why does not load loads from namespace names?

The best practice is to use the symphony class

Since you can simplify this in this way:

  parameters: trendio.rest.backend_ip: 192.168.0.102 Services: _defaults: autowire: trueTradio \ DeliBandle \ TridentUuserProvider: ~ Tridento \ DeliBandal \ Services \ Tridentirerest: Logic: [% trendio.rest.backend_ip%]  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -