mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 16:14:16 +02:00
refactor(dependencies): remove unused $flextype variable and cleanup dependencies
This commit is contained in:
@@ -62,14 +62,14 @@ $flextype['callableResolver'] = function ($flextype) {
|
||||
/**
|
||||
* Add registry service to Flextype container
|
||||
*/
|
||||
$flextype['registry'] = function ($flextype) use ($registry) {
|
||||
$flextype['registry'] = function () use ($registry) {
|
||||
return $registry;
|
||||
};
|
||||
|
||||
/**
|
||||
* Add logger service to Flextype container
|
||||
*/
|
||||
$flextype['logger'] = function ($flextype) {
|
||||
$flextype['logger'] = function () {
|
||||
$logger = new Logger('flextype');
|
||||
$logger->pushHandler(new StreamHandler(PATH['logs'] . '/' . date('Y-m-d') . '.log'));
|
||||
|
||||
@@ -79,7 +79,7 @@ $flextype['logger'] = function ($flextype) {
|
||||
/**
|
||||
* Add emitter service to Flextype container
|
||||
*/
|
||||
$flextype['emitter'] = function ($flextype) {
|
||||
$flextype['emitter'] = function () {
|
||||
return new Emitter();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user