Skip to content

Entity mapping loaded in Symfony extension #2756

@jkabat

Description

@jkabat

Im trying to update bundle from 2.7 => 3.3

In the old bundle Im loading appropriate entity mapping when particular extension is enabled.

    public function prepend(ContainerBuilder $container): void
    {
        if (!$this->isExtensionEnabled($container)) {
            return;
        }

        if (isset($container->getExtensions()['api_platform'])) {
            $container->prependExtensionConfig('api_platform', [
                'mapping' => [
                    'paths' => ['%kernel.project_dir%/config/api/resources/voice_twilio.yaml'],
                ],
            ]);
        }
    }

After upgrade I can only see automatically generated entity routes in "debug:routes" - all of them are starting by underscore.
Is it the loading of mapping done too late? What can I do in order to fix it? I'm not very well informed about the Symfony internals.

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