Skip to content

DependencyInjection: simplify service loading and replace deprecated prototype() calls in Configuration #271

Closed

Description

@njoubert-cleverage

Description

  • CleverAgeProcessExtension::findServices() reimplements service loading with a Finder and one YamlFileLoader::load() call per file. The loader supports glob patterns: $loader->load('*.yaml') (with a FileLocator on config/services) does the same.
    findServices() is protected: keep it (deprecated) for subclasses, or only change its implementation.
  • Configuration uses ->prototype('array') / ->prototype('variable'), replaced by ->arrayPrototype() / ->variablePrototype() since Symfony 3.3 / 4.x. Its docblock still links to the Symfony 2 cookbook.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None: same services and same configuration tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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