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

Closed
mnapoli opened this Issue Oct 30, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@mnapoli
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 the refactoring label Oct 30, 2014

@mnapoli mnapoli added this to the 5.0 milestone Oct 30, 2014

mnapoli added a commit that referenced this issue Oct 30, 2014

@mnapoli mnapoli referenced this issue Oct 30, 2014

Closed

Obsolete 5.0 #199

1 of 4 tasks complete

@mnapoli mnapoli closed this Oct 30, 2014

This was referenced Oct 30, 2014

mnapoli added a commit that referenced this issue Oct 31, 2014

#198 Abstracted the ProxyManager library behind an adapter class
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