AppBundle->App.

This commit is contained in:
Valentin 2018-07-06 11:57:10 +03:00
parent 601cc0827d
commit b4552373c1
2 changed files with 6 additions and 6 deletions

View File

@ -75,7 +75,7 @@ Suppose that you have the following security configuration in your application:
security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext
AppBundle\Entity\User: bcrypt
App\Entity\User: bcrypt
</comment>
If you execute the command non-interactively, the first available configured
@ -87,16 +87,16 @@ generated to encode the password:
Pass the full user class path as the second argument to encode passwords for
your own entities:
<info>php %command.full_name% --no-interaction [password] AppBundle\Entity\User</info>
<info>php %command.full_name% --no-interaction [password] App\Entity\User</info>
Executing the command interactively allows you to generate a random salt for
encoding the password:
<info>php %command.full_name% [password] AppBundle\Entity\User</info>
<info>php %command.full_name% [password] App\Entity\User</info>
In case your encoder doesn't require a salt, add the <comment>empty-salt</comment> option:
<info>php %command.full_name% --empty-salt [password] AppBundle\Entity\User</info>
<info>php %command.full_name% --empty-salt [password] App\Entity\User</info>
EOF
)

View File

@ -410,8 +410,8 @@ class MainConfiguration implements ConfigurationInterface
->children()
->arrayNode('encoders')
->example(array(
'AppBundle\Entity\User1' => 'bcrypt',
'AppBundle\Entity\User2' => array(
'App\Entity\User1' => 'bcrypt',
'App\Entity\User2' => array(
'algorithm' => 'bcrypt',
'cost' => 13,
),