You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
444 B
PHTML
19 lines
444 B
PHTML
7 years ago
|
<?php
|
||
|
|
||
|
namespace Engelsystem\Logger;
|
||
|
|
||
|
use Engelsystem\Container\ServiceProvider;
|
||
|
use Psr\Log\LoggerInterface;
|
||
|
|
||
|
class LoggerServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
public function register()
|
||
|
{
|
||
|
$logger = $this->app->make(EngelsystemLogger::class);
|
||
|
$this->app->instance('logger', $logger);
|
||
|
|
||
|
$this->app->bind(LoggerInterface::class, 'logger');
|
||
|
$this->app->bind(EngelsystemLogger::class, 'logger');
|
||
|
}
|
||
|
}
|