Update service provider
This commit is contained in:
parent
70ba5000c1
commit
a70307cdbe
1 changed files with 5 additions and 1 deletions
|
|
@ -23,7 +23,11 @@ class FFMpegServiceProvider implements ServiceProviderInterface
|
||||||
|
|
||||||
public function register(Application $app)
|
public function register(Application $app)
|
||||||
{
|
{
|
||||||
if ( ! isset($app['ffmpeg.logger'])) {
|
if (isset($app['monolog'])) {
|
||||||
|
$app['ffmpeg.logger'] = function() use ($app) {
|
||||||
|
return $app['monolog'];
|
||||||
|
};
|
||||||
|
} else {
|
||||||
$app['ffmpeg.logger'] = $app->share(function(Application $app) {
|
$app['ffmpeg.logger'] = $app->share(function(Application $app) {
|
||||||
$logger = new Logger('FFMpeg logger');
|
$logger = new Logger('FFMpeg logger');
|
||||||
$logger->pushHandler(new NullHandler());
|
$logger->pushHandler(new NullHandler());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue