Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.0.2] Regression on security.encoder_factory #17864

Copy link
Copy link
Closed
@havvg

Description

@havvg
Issue body actions

It seems there is a regression in v3.0.2 when you require a password encoder using a factorised service.

    user.password_encoder:
        class: Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface
        factory: ['@security.encoder_factory', 'getEncoder']
        arguments:
            - 'Application\Security\User'

    user.factory:
        class: Application\Domain\User\Model\UserFactory
        arguments:
            - '@user.password_encoder'
 $ behat -o /dev/null && composer up symfony/symfony && behat -o /dev/null
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating symfony/symfony (v3.0.1 => v3.0.2)
    Checking out 18c3d4f356931a5b6a4afb0cc679a2c58931c795

Writing lock file
Generating autoload files
Changelogs summary:

 - symfony/symfony updated from v3.0.1 to v3.0.2
   See changes: https://github.com/symfony/symfony/compare/v3.0.1...v3.0.2
   Release notes: https://github.com/symfony/symfony/releases/tag/v3.0.2

> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/environments/parameters.yml" file
> Application\Composer\BootstrapHandler::ensureDirectoriesExist
Ensuring the var directory exists.
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug true


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.

 --- ----------------- ------------------
      Bundle            Method / Error
 --- ----------------- ------------------
  ✔   FrameworkBundle   relative symlink
 --- ----------------- ------------------


 [OK] All assets were successfully installed.


  [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
  You have requested a non-existent service "security.encoder_factory.generic". Did you mean this: "security.encoder_factory"?


behat [-s|--suite SUITE] [-f|--format FORMAT] [-o|--out OUT] [--format-settings FORMAT-SETTINGS] [--init] [--lang LANG] [--name NAME] [--tags TAGS] [--role ROLE] [--story-syntax] [-d|--definitions DEFINITIONS] [--append-snippets] [--no-snippets] [--strict] [--order ORDER] [--rerun] [--stop-on-failure] [--dry-run] [--] [<paths>]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.