Skip to content

Container is not available when calling hook_init() #7

@legovaer

Description

@legovaer

When a module is using the Symfony container in a hook_init() call, it's possible that the code is throwing an error because the global $_drupal_symfony_di_container has not been set yet.

We need to be sure that the global has been set before any other module is calling hook_init()

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