AppBundle->App.
This commit is contained in:
parent
601cc0827d
commit
b4552373c1
@ -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
|
||||
)
|
||||
|
@ -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,
|
||||
),
|
||||
|
Reference in New Issue
Block a user