Skip to content

Framework bundle issue with session disabled #9217

@adrienbrault

Description

@adrienbrault

I tried to run the FSCHateoasBundle tests (symfony master), but it failed:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "security.csrf.token_generator" has a dependency on a non-existent service "session".

/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:59
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:43
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:54
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:43
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:37
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/Compiler.php:119
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php:626
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php:559
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php:130
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/Tests/Functional/TestCase.php:25
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/Tests/Functional/TestCase.php:30
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/Tests/Functional/TestCase.php:67
/Users/adrienbrault/Developer/mygithub/FSCHateoasBundle/Tests/Functional/SerializationTest.php:133

Requiring a stable version of symfony (2.3.5) fixes this issue.
Here's the framework bundle configuration used in these tests https://github.com/TheFootballSocialClub/FSCHateoasBundle/blob/master/Tests/Functional/config/config.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions