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
Post a Comment