Skip to content
This repository was archived by the owner on Dec 7, 2019. It is now read-only.

[WIP] Creation of factories for the service manager #82

Conversation

UFOMelkor
Copy link

Allows to create factories for the service manager by using
create service-factory <service> [<factory>] [<path>]

  • The factory class-name defaults to <service>Factory
  • The constructor parameters will be fetched from the service manager by using the class-names as keys.
  • Parameters without a type hint are set to null.
  • array and callable are initialized to useless values (array() and function () {}).
  • Optional parameters are not fetched.

The factory is not added to configuration yet. IMHO there should be support for the configuration of plugin managers besides the service manager (ControllerManager etc) should be also supported.

@RalfEggert This might be also interesting for #80.

@UFOMelkor UFOMelkor closed this Jul 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant