Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@igormukhingmailcom
Last active March 28, 2019 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igormukhingmailcom/39edfb74d45d57f97bafadc3bc7d9af6 to your computer and use it in GitHub Desktop.
Save igormukhingmailcom/39edfb74d45d57f97bafadc3bc7d9af6 to your computer and use it in GitHub Desktop.
Sometime we can face some weird issue and spend a lot of time to find why it happen. Here I will be collecting some issues and reasons why they happening.
  • Fixture with name ""your_cusom_fixture"" is already registered.
    • Reason: Your fixture service registers twice (as app.fixture.bla by you and as App\Fixture\BlaFixture by DI autoconfigure)
    • Solutions:
      • Exclude fixtures folder from DI autoconfigure
      • Make your fixture comatible with DI autocomfigure
    • How that was found: Dumped $taggedServices at vendor/sylius/fixtures-bundle/src/DependencyInjection/Compiler/FixtureRegistryPass.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment