Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function traitement() |
||
13 | { |
||
14 | $user = Utilisateur::createFromPayload($this->input->getArgument("login"), ["roles" => ["ROLE_SUPER_ADMIN"]]); |
||
15 | $user->setPlainPassword($this->input->getArgument("password")); |
||
16 | $password = $this->getContainer()->get('security.password_encoder') |
||
17 | ->encodePassword($user, $user->getPlainPassword()); |
||
18 | $user->setPassword($password); |
||
19 | |||
20 | $this->getEntityManager()->persist($user); |
||
21 | $this->getEntityManager()->flush(); |
||
22 | } |
||
23 | |||
33 |
This check marks files that end in a newline character, i.e. an empy line.