Symfony3.2 to symfony4 security.encoder_factory deprecated error



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.



I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.



In my login controller for symfony3.2 version,



I used security.encoder_factory service



And when I am running it in symfony4 it results:



The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.



My controller code for encoding password is:



public function loginAction(Request $request)

#$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');

$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];

$encoderFactory = new EncoderFactory($encoders);

$data = [
'error' => null,
'_username' => null,
];
if ($request->isMethod('POST'))
$_username = $request->request->get('_username');
$_password = $request->request->get('_password');

$data['_username'] = $_username;
$user = $this->getDoctrine()->getManager()
->getRepository("App:User")
->findOneBy(array('username' => $_username);
if (!$user)
$data['error'] = 'User-Id does not exist';
return $this->render(
'login.html.twig',
$data
);


$encoder = $encoderFactory->getEncoder($user);
$salt = $user->getSalt();
#$encoder = $this->encodePassword($_password, $salt);

if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
$data['error'] = 'User-Id or Password not valid.';
return $this->render(
'login.html.twig',
$data
);


return $this->redirect($this->generateUrl('default__home_page'));


return $this->render(
'login.html.twig',
$data
);



My security for encoding is:



security:
encoders:
AppEntityUser: bcrypt
AppSecurityUserWebserviceUser: bcrypt
SymfonyComponentSecurityCoreUserUser: bcrypt
FOSUserBundleModelUserInterface: sha512
# https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
providers:
#in_memory: memory: ~
our_db_provider:
entity:
class: App:User
property: username
fos_userbundle:
id: fos_user.user_provider.username_email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
secured_area:
anonymous: ~
pattern: ^/s/login$
http_basic: ~
provider: fos_userbundle
user_checker: security.user_checker

form_login:
login_path: login_page
check_path: login_page
failure_handler: security.authentication.failure_handler
guard:
authenticators:
- AppSecurityLoginControllerAuthenticator
# activate different ways to authenticate

# http_basic: ~
# http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

# form_login: ~
# http://symfony.com/doc/current/cookbook/security/form_login_setup.html

logout:
path: /logout/
target: /login/


Is there any alternative way or service to encoding my password as the above code represents.



error:



No encoder has been configured for account "AppEntityUser".

at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
(src/Controller/StudentController.php:65)
at AppControllerStudentController->loginAction(object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:149)
at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:188)
at SymfonyComponentHttpKernelKernel->handle(object(Request))
(public/index.php:37)


Thanks in advance.










share|improve this question






























    0















    I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.



    I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.



    In my login controller for symfony3.2 version,



    I used security.encoder_factory service



    And when I am running it in symfony4 it results:



    The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.



    My controller code for encoding password is:



    public function loginAction(Request $request)

    #$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
    $defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');

    $encoders = [
    User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
    ];

    $encoderFactory = new EncoderFactory($encoders);

    $data = [
    'error' => null,
    '_username' => null,
    ];
    if ($request->isMethod('POST'))
    $_username = $request->request->get('_username');
    $_password = $request->request->get('_password');

    $data['_username'] = $_username;
    $user = $this->getDoctrine()->getManager()
    ->getRepository("App:User")
    ->findOneBy(array('username' => $_username);
    if (!$user)
    $data['error'] = 'User-Id does not exist';
    return $this->render(
    'login.html.twig',
    $data
    );


    $encoder = $encoderFactory->getEncoder($user);
    $salt = $user->getSalt();
    #$encoder = $this->encodePassword($_password, $salt);

    if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
    $data['error'] = 'User-Id or Password not valid.';
    return $this->render(
    'login.html.twig',
    $data
    );


    return $this->redirect($this->generateUrl('default__home_page'));


    return $this->render(
    'login.html.twig',
    $data
    );



    My security for encoding is:



    security:
    encoders:
    AppEntityUser: bcrypt
    AppSecurityUserWebserviceUser: bcrypt
    SymfonyComponentSecurityCoreUserUser: bcrypt
    FOSUserBundleModelUserInterface: sha512
    # https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
    providers:
    #in_memory: memory: ~
    our_db_provider:
    entity:
    class: App:User
    property: username
    fos_userbundle:
    id: fos_user.user_provider.username_email
    firewalls:
    dev:
    pattern: ^/(_(profiler|wdt)|css|images|js)/
    security: false
    secured_area:
    anonymous: ~
    pattern: ^/s/login$
    http_basic: ~
    provider: fos_userbundle
    user_checker: security.user_checker

    form_login:
    login_path: login_page
    check_path: login_page
    failure_handler: security.authentication.failure_handler
    guard:
    authenticators:
    - AppSecurityLoginControllerAuthenticator
    # activate different ways to authenticate

    # http_basic: ~
    # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

    # form_login: ~
    # http://symfony.com/doc/current/cookbook/security/form_login_setup.html

    logout:
    path: /logout/
    target: /login/


    Is there any alternative way or service to encoding my password as the above code represents.



    error:



    No encoder has been configured for account "AppEntityUser".

    at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
    at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
    (src/Controller/StudentController.php:65)
    at AppControllerStudentController->loginAction(object(Request))
    (vendor/symfony/http-kernel/HttpKernel.php:149)
    at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
    (vendor/symfony/http-kernel/HttpKernel.php:66)
    at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
    (vendor/symfony/http-kernel/Kernel.php:188)
    at SymfonyComponentHttpKernelKernel->handle(object(Request))
    (public/index.php:37)


    Thanks in advance.










    share|improve this question


























      0












      0








      0








      I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.



      I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.



      In my login controller for symfony3.2 version,



      I used security.encoder_factory service



      And when I am running it in symfony4 it results:



      The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.



      My controller code for encoding password is:



      public function loginAction(Request $request)

      #$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
      $defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');

      $encoders = [
      User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
      ];

      $encoderFactory = new EncoderFactory($encoders);

      $data = [
      'error' => null,
      '_username' => null,
      ];
      if ($request->isMethod('POST'))
      $_username = $request->request->get('_username');
      $_password = $request->request->get('_password');

      $data['_username'] = $_username;
      $user = $this->getDoctrine()->getManager()
      ->getRepository("App:User")
      ->findOneBy(array('username' => $_username);
      if (!$user)
      $data['error'] = 'User-Id does not exist';
      return $this->render(
      'login.html.twig',
      $data
      );


      $encoder = $encoderFactory->getEncoder($user);
      $salt = $user->getSalt();
      #$encoder = $this->encodePassword($_password, $salt);

      if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
      $data['error'] = 'User-Id or Password not valid.';
      return $this->render(
      'login.html.twig',
      $data
      );


      return $this->redirect($this->generateUrl('default__home_page'));


      return $this->render(
      'login.html.twig',
      $data
      );



      My security for encoding is:



      security:
      encoders:
      AppEntityUser: bcrypt
      AppSecurityUserWebserviceUser: bcrypt
      SymfonyComponentSecurityCoreUserUser: bcrypt
      FOSUserBundleModelUserInterface: sha512
      # https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
      providers:
      #in_memory: memory: ~
      our_db_provider:
      entity:
      class: App:User
      property: username
      fos_userbundle:
      id: fos_user.user_provider.username_email
      firewalls:
      dev:
      pattern: ^/(_(profiler|wdt)|css|images|js)/
      security: false
      secured_area:
      anonymous: ~
      pattern: ^/s/login$
      http_basic: ~
      provider: fos_userbundle
      user_checker: security.user_checker

      form_login:
      login_path: login_page
      check_path: login_page
      failure_handler: security.authentication.failure_handler
      guard:
      authenticators:
      - AppSecurityLoginControllerAuthenticator
      # activate different ways to authenticate

      # http_basic: ~
      # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

      # form_login: ~
      # http://symfony.com/doc/current/cookbook/security/form_login_setup.html

      logout:
      path: /logout/
      target: /login/


      Is there any alternative way or service to encoding my password as the above code represents.



      error:



      No encoder has been configured for account "AppEntityUser".

      at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
      at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
      (src/Controller/StudentController.php:65)
      at AppControllerStudentController->loginAction(object(Request))
      (vendor/symfony/http-kernel/HttpKernel.php:149)
      at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
      (vendor/symfony/http-kernel/HttpKernel.php:66)
      at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
      (vendor/symfony/http-kernel/Kernel.php:188)
      at SymfonyComponentHttpKernelKernel->handle(object(Request))
      (public/index.php:37)


      Thanks in advance.










      share|improve this question
















      I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.



      I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.



      In my login controller for symfony3.2 version,



      I used security.encoder_factory service



      And when I am running it in symfony4 it results:



      The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.



      My controller code for encoding password is:



      public function loginAction(Request $request)

      #$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
      $defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');

      $encoders = [
      User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
      ];

      $encoderFactory = new EncoderFactory($encoders);

      $data = [
      'error' => null,
      '_username' => null,
      ];
      if ($request->isMethod('POST'))
      $_username = $request->request->get('_username');
      $_password = $request->request->get('_password');

      $data['_username'] = $_username;
      $user = $this->getDoctrine()->getManager()
      ->getRepository("App:User")
      ->findOneBy(array('username' => $_username);
      if (!$user)
      $data['error'] = 'User-Id does not exist';
      return $this->render(
      'login.html.twig',
      $data
      );


      $encoder = $encoderFactory->getEncoder($user);
      $salt = $user->getSalt();
      #$encoder = $this->encodePassword($_password, $salt);

      if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
      $data['error'] = 'User-Id or Password not valid.';
      return $this->render(
      'login.html.twig',
      $data
      );


      return $this->redirect($this->generateUrl('default__home_page'));


      return $this->render(
      'login.html.twig',
      $data
      );



      My security for encoding is:



      security:
      encoders:
      AppEntityUser: bcrypt
      AppSecurityUserWebserviceUser: bcrypt
      SymfonyComponentSecurityCoreUserUser: bcrypt
      FOSUserBundleModelUserInterface: sha512
      # https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
      providers:
      #in_memory: memory: ~
      our_db_provider:
      entity:
      class: App:User
      property: username
      fos_userbundle:
      id: fos_user.user_provider.username_email
      firewalls:
      dev:
      pattern: ^/(_(profiler|wdt)|css|images|js)/
      security: false
      secured_area:
      anonymous: ~
      pattern: ^/s/login$
      http_basic: ~
      provider: fos_userbundle
      user_checker: security.user_checker

      form_login:
      login_path: login_page
      check_path: login_page
      failure_handler: security.authentication.failure_handler
      guard:
      authenticators:
      - AppSecurityLoginControllerAuthenticator
      # activate different ways to authenticate

      # http_basic: ~
      # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

      # form_login: ~
      # http://symfony.com/doc/current/cookbook/security/form_login_setup.html

      logout:
      path: /logout/
      target: /login/


      Is there any alternative way or service to encoding my password as the above code represents.



      error:



      No encoder has been configured for account "AppEntityUser".

      at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
      at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
      (src/Controller/StudentController.php:65)
      at AppControllerStudentController->loginAction(object(Request))
      (vendor/symfony/http-kernel/HttpKernel.php:149)
      at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
      (vendor/symfony/http-kernel/HttpKernel.php:66)
      at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
      (vendor/symfony/http-kernel/Kernel.php:188)
      at SymfonyComponentHttpKernelKernel->handle(object(Request))
      (public/index.php:37)


      Thanks in advance.







      symfony4 symfony-3.2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 13:54







      A.JRJ

















      asked Nov 15 '18 at 6:59









      A.JRJA.JRJ

      548




      548






















          1 Answer
          1






          active

          oldest

          votes


















          1














          See doc :



          https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory



          You can get encoder in you controller this way.



          EDIT :



          Here an example :



           $defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);

          $encoders = [
          User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
          ];

          $encoderFactory = new EncoderFactory($encoders);

          $user = new User('test', null); // The user you want to authenticate

          $password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');



          EDIT 2 :



          You have to defined YOUR user class there :



          $encoders = [
          AppEntityUser::class => $defaultEncoder,
          ];


          Check you're not using User Symfony class.






          share|improve this answer

























          • I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code

            – A.JRJ
            Nov 15 '18 at 10:24











          • I updated the code. If you have any question, tell me. You can post your user provider ?

            – Thomas Lefetz
            Nov 15 '18 at 12:01











          • I got error as No encoder has been configured for account "AppEntityUser" but I configured this in security.yaml

            – A.JRJ
            Nov 15 '18 at 12:47












          • Can you post your code and security.yml ?

            – Thomas Lefetz
            Nov 15 '18 at 12:52











          • I updated the question with code

            – A.JRJ
            Nov 15 '18 at 13:11











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313999%2fsymfony3-2-to-symfony4-security-encoder-factory-deprecated-error%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          See doc :



          https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory



          You can get encoder in you controller this way.



          EDIT :



          Here an example :



           $defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);

          $encoders = [
          User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
          ];

          $encoderFactory = new EncoderFactory($encoders);

          $user = new User('test', null); // The user you want to authenticate

          $password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');



          EDIT 2 :



          You have to defined YOUR user class there :



          $encoders = [
          AppEntityUser::class => $defaultEncoder,
          ];


          Check you're not using User Symfony class.






          share|improve this answer

























          • I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code

            – A.JRJ
            Nov 15 '18 at 10:24











          • I updated the code. If you have any question, tell me. You can post your user provider ?

            – Thomas Lefetz
            Nov 15 '18 at 12:01











          • I got error as No encoder has been configured for account "AppEntityUser" but I configured this in security.yaml

            – A.JRJ
            Nov 15 '18 at 12:47












          • Can you post your code and security.yml ?

            – Thomas Lefetz
            Nov 15 '18 at 12:52











          • I updated the question with code

            – A.JRJ
            Nov 15 '18 at 13:11















          1














          See doc :



          https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory



          You can get encoder in you controller this way.



          EDIT :



          Here an example :



           $defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);

          $encoders = [
          User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
          ];

          $encoderFactory = new EncoderFactory($encoders);

          $user = new User('test', null); // The user you want to authenticate

          $password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');



          EDIT 2 :



          You have to defined YOUR user class there :



          $encoders = [
          AppEntityUser::class => $defaultEncoder,
          ];


          Check you're not using User Symfony class.






          share|improve this answer

























          • I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code

            – A.JRJ
            Nov 15 '18 at 10:24











          • I updated the code. If you have any question, tell me. You can post your user provider ?

            – Thomas Lefetz
            Nov 15 '18 at 12:01











          • I got error as No encoder has been configured for account "AppEntityUser" but I configured this in security.yaml

            – A.JRJ
            Nov 15 '18 at 12:47












          • Can you post your code and security.yml ?

            – Thomas Lefetz
            Nov 15 '18 at 12:52











          • I updated the question with code

            – A.JRJ
            Nov 15 '18 at 13:11













          1












          1








          1







          See doc :



          https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory



          You can get encoder in you controller this way.



          EDIT :



          Here an example :



           $defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);

          $encoders = [
          User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
          ];

          $encoderFactory = new EncoderFactory($encoders);

          $user = new User('test', null); // The user you want to authenticate

          $password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');



          EDIT 2 :



          You have to defined YOUR user class there :



          $encoders = [
          AppEntityUser::class => $defaultEncoder,
          ];


          Check you're not using User Symfony class.






          share|improve this answer















          See doc :



          https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory



          You can get encoder in you controller this way.



          EDIT :



          Here an example :



           $defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);

          $encoders = [
          User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
          ];

          $encoderFactory = new EncoderFactory($encoders);

          $user = new User('test', null); // The user you want to authenticate

          $password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');



          EDIT 2 :



          You have to defined YOUR user class there :



          $encoders = [
          AppEntityUser::class => $defaultEncoder,
          ];


          Check you're not using User Symfony class.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 15 '18 at 13:14

























          answered Nov 15 '18 at 9:29









          Thomas LefetzThomas Lefetz

          1215




          1215












          • I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code

            – A.JRJ
            Nov 15 '18 at 10:24











          • I updated the code. If you have any question, tell me. You can post your user provider ?

            – Thomas Lefetz
            Nov 15 '18 at 12:01











          • I got error as No encoder has been configured for account "AppEntityUser" but I configured this in security.yaml

            – A.JRJ
            Nov 15 '18 at 12:47












          • Can you post your code and security.yml ?

            – Thomas Lefetz
            Nov 15 '18 at 12:52











          • I updated the question with code

            – A.JRJ
            Nov 15 '18 at 13:11

















          • I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code

            – A.JRJ
            Nov 15 '18 at 10:24











          • I updated the code. If you have any question, tell me. You can post your user provider ?

            – Thomas Lefetz
            Nov 15 '18 at 12:01











          • I got error as No encoder has been configured for account "AppEntityUser" but I configured this in security.yaml

            – A.JRJ
            Nov 15 '18 at 12:47












          • Can you post your code and security.yml ?

            – Thomas Lefetz
            Nov 15 '18 at 12:52











          • I updated the question with code

            – A.JRJ
            Nov 15 '18 at 13:11
















          I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code

          – A.JRJ
          Nov 15 '18 at 10:24





          I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code

          – A.JRJ
          Nov 15 '18 at 10:24













          I updated the code. If you have any question, tell me. You can post your user provider ?

          – Thomas Lefetz
          Nov 15 '18 at 12:01





          I updated the code. If you have any question, tell me. You can post your user provider ?

          – Thomas Lefetz
          Nov 15 '18 at 12:01













          I got error as No encoder has been configured for account "AppEntityUser" but I configured this in security.yaml

          – A.JRJ
          Nov 15 '18 at 12:47






          I got error as No encoder has been configured for account "AppEntityUser" but I configured this in security.yaml

          – A.JRJ
          Nov 15 '18 at 12:47














          Can you post your code and security.yml ?

          – Thomas Lefetz
          Nov 15 '18 at 12:52





          Can you post your code and security.yml ?

          – Thomas Lefetz
          Nov 15 '18 at 12:52













          I updated the question with code

          – A.JRJ
          Nov 15 '18 at 13:11





          I updated the question with code

          – A.JRJ
          Nov 15 '18 at 13:11



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313999%2fsymfony3-2-to-symfony4-security-encoder-factory-deprecated-error%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Use pre created SQLite database for Android project in kotlin

          Darth Vader #20

          Ondo