library creator
Automatic dependencies resolution.
ilya/creator
Automatic dependencies resolution.
- Tuesday, June 10, 2014
- by ilya.s
- Repository
- 1 Watchers
- 0 Stars
- 14 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
Creator
, (*1)
Creator is a thin Reflection API wrapper that allows you to easily instantiate classes., (*2)
It will automatically read the constructor's dependencies and inject them into a new instance., (*3)
use Creator\Creator;
class Foo {
public function __construct(AnotherClass $foo, $bar = 42)
{
# something here
}
}
# do not want to instantiate it manually? here is what you can do
$foo = Creator::make('Foo'); # => new instance of Foo
Creator is licensed under the MIT license., (*4)
dev-master
9999999-dev
Automatic dependencies resolution.
Sources
Download
MIT
The Development Requires
by
Ilya S
automatic
dependencies
resolution
2.0.0
2.0.0.0
Automatic dependencies resolution.
Sources
Download
MIT
The Development Requires
by
Ilya S
automatic
dependencies
resolution
1.0.0
1.0.0.0
An example of automatic dependency resolution in PHP
Sources
Download
MIT
The Development Requires
by
Ilya S