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

[DI] [BC] Building service locator with non-shared services fails #27360

Copy link
Copy link
Closed
@curry684

Description

@curry684
Issue body actions

Symfony version(s) affected: 4.1.0-beta2

Description
See https://travis-ci.org/omines/datatables-bundle/builds/382768680, build is failing only on 'dev', which is Symfony master branch. Following error occurs only in this build config:

PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Invalid ignore-on-uninitialized reference found in service ".2_ServiceLocator~i_rgpvA": target service "Omines\DataTablesBundle\Adapter\ArrayAdapter" is not shared. in /home/travis/build/omines/datatables-bundle/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:35

Same error also occurs when running tests in a real application with 4.1.0-beta2, but strangely not in its dev environment.

How to reproduce

git clone git@github.com:omines/datatables-bundle.git reproducer
cd reproducer
composer config minimum-stability dev
composer update
vendor/bin/phpunit

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.