Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less Composer dependencies: make Ocramius/ProxyManager (lazy injection) optional #198

Closed
mnapoli opened this issue Oct 30, 2014 · 0 comments
Milestone

Comments

@mnapoli
Copy link
Member

mnapoli commented Oct 30, 2014

The Ocramius/ProxyManager package comes with a lot of dependencies. This package is useful only for lazy injection.

This package will not be installed by default in v5.0 in order to lighten PHP-DI's dependencies.

Before:

  • doctrine/annotations
  • doctrine/cache
  • doctrine/lexer
  • container-interop
  • phpdocreader
  • myclabs/php-enum
  • zendframework/zend-stdlib
  • zendframework/zend-eventmanager
  • zendframework/zend-code
  • ocramius/proxy-manager

After:

  • doctrine/annotations
  • doctrine/cache
  • doctrine/lexer
  • container-interop
  • phpdocreader
  • myclabs/php-enum

In order to use lazy injection, users will have to require ocramius/proxy-manager themselves. This will be reflected in the documentation.

@mnapoli mnapoli added this to the 5.0 milestone Oct 30, 2014
@mnapoli mnapoli mentioned this issue Oct 30, 2014
4 tasks
@mnapoli mnapoli closed this as completed Oct 30, 2014
This was referenced Oct 30, 2014
mnapoli added a commit that referenced this issue Oct 31, 2014
The adapter catches when the ProxyManager is not installed and throws a meaningful exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant