library servant
Catalyst Servant Dependency Inhibitor Library
catalyst/servant
Catalyst Servant Dependency Inhibitor Library
- Friday, January 27, 2017
- by nihylum
- Repository
- 3 Watchers
- 2 Stars
- 6 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
Servant
Catalyst Servant - Dependency Inhibitor Library, (*1)
What is Servant ?
Servant is a dependency inhibitor based on a chain of responsibility. Servant
provides the ability to resolve a given dependency based on a class name or a
ReflectionParameter
-Instance., (*2)
Usage
use Catalyst\Servant\{
RepositoryServant,
BlindServant
};
$servant = new RepositoryServant();
$servant->chain(new BlindServant());
$servant->ensure(DateTimeInterface::class, function() {
return date_create();
});
$dateTime = $servant->resolve(DateTimeInterface::class);
Boxed Servants
This package serves the following ServantInterface
-Implementations:, (*3)
-
RepositoryServant
- A repository based servant that allows to assign
aliases and interfaces to concretes.
-
BlindServant
- A blind servant that allows the instancing of objects
out of the blue.
-
NullServant
- A null servant that returns null and acts as an end point
to guarantee a null-result when no dependency resolver was successful.
License and Maintainer(s)
This package is licensed under the MIT license. This package is actively
maintained by:, (*4)
dev-master
9999999-dev
Catalyst Servant Dependency Inhibitor Library
Sources
Download
MIT
The Requires
by
Matthias Kaschubowski
v0.1.1
0.1.1.0
Catalyst Servant Dependency Inhibitor Library
Sources
Download
MIT
The Requires
by
Matthias Kaschubowski
v0.1
0.1.0.0
Catalyst Servant Dependency Inhibitor Library
Sources
Download
MIT
The Requires
by
Matthias Kaschubowski