@@ -199,7 +199,7 @@ the username and then check the password (more on passwords in a moment):
199199
200200 ..code-block ::yaml
201201
202- # app/ config/security.yml
202+ # config/packages/ security.yaml
203203security :
204204encoders :
205205App\Entity\User :
@@ -210,7 +210,7 @@ the username and then check the password (more on passwords in a moment):
210210providers :
211211our_db_provider :
212212entity :
213- class :AppBundle: User
213+ class :App\Entity\ User
214214property :username
215215# if you're using multiple entity managers
216216# manager_name: customer
@@ -225,7 +225,7 @@ the username and then check the password (more on passwords in a moment):
225225
226226 ..code-block ::xml
227227
228- <!-- app/ config/security.xml-->
228+ <!-- config/packages /security.xml-->
229229 <?xml version =" 1.0" encoding =" UTF-8" ?>
230230 <srv : container xmlns =" http://symfony.com/schema/dic/security"
231231xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -241,7 +241,7 @@ the username and then check the password (more on passwords in a moment):
241241 <provider name =" our_db_provider" >
242242<!-- if you're using multiple entity managers, add:
243243 manager-name="customer"-->
244- <entity class =" AppBundle: User" property =" username" />
244+ <entity class =" App\Entity\ User" property =" username" />
245245 </provider >
246246
247247 <firewall name =" main" pattern =" ^/" provider =" our_db_provider" >
@@ -254,7 +254,7 @@ the username and then check the password (more on passwords in a moment):
254254
255255 ..code-block ::php
256256
257- //app/ config/security.php
257+ // config/packages /security.php
258258 use App\Entity\User;
259259
260260 $container->loadFromExtension('security', array(
@@ -269,7 +269,7 @@ the username and then check the password (more on passwords in a moment):
269269 'providers' => array(
270270 'our_db_provider' => array(
271271 'entity' => array(
272- 'class' =>'AppBundle: User' ,
272+ 'class' => User::class ,
273273 'property' => 'username',
274274 ),
275275 ),
@@ -288,7 +288,7 @@ the username and then check the password (more on passwords in a moment):
288288 First, the ``encoders `` section tells Symfony to expect that the passwords
289289in the database will be encoded using ``bcrypt ``. Second, the ``providers ``
290290section creates a "user provider" called ``our_db_provider `` that knows to
291- query from your ``AppBundle: User `` entity by the ``username `` property. The
291+ query from your ``App\Entity\ User `` entity by the ``username `` property. The
292292name ``our_db_provider `` isn't important: it just needs to match the value
293293of the ``provider `` key under your firewall. Or, if you don't set the ``provider ``
294294key under your firewall, the first "user provider" is automatically used.
@@ -458,18 +458,18 @@ To finish this, just remove the ``property`` key from the user provider in
458458
459459 ..code-block ::yaml
460460
461- # app/ config/security.yml
461+ # config/packages/ security.yaml
462462security :
463463# ...
464464
465465providers :
466466our_db_provider :
467467entity :
468- class :AppBundle: User
468+ class :App\Entity\ User
469469
470470 ..code-block ::xml
471471
472- <!-- app/ config/security.xml-->
472+ <!-- config/packages /security.xml-->
473473 <?xml version =" 1.0" encoding =" UTF-8" ?>
474474 <srv : container xmlns =" http://symfony.com/schema/dic/security"
475475xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -481,21 +481,23 @@ To finish this, just remove the ``property`` key from the user provider in
481481<!-- ...-->
482482
483483 <provider name =" our_db_provider" >
484- <entity class =" AppBundle: User" />
484+ <entity class =" App\Entity\ User" />
485485 </provider >
486486 </config >
487487 </srv : container >
488488
489489 ..code-block ::php
490490
491- // app/config/security.php
491+ // config/packages/security.php
492+ use App\Entity\User;
493+
492494 $container->loadFromExtension('security', array(
493495 // ...
494496
495497 'providers' => array(
496498 'our_db_provider' => array(
497499 'entity' => array(
498- 'class' =>'AppBundle: User' ,
500+ 'class' => User::class ,
499501 ),
500502 ),
501503 ),