mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Merge pull request #528 from romainneutron/media-alchemyst-logging
[3.8] Add logger to media-alchemyst
This commit is contained in:
@@ -238,6 +238,9 @@ class Application extends SilexApplication
|
||||
|
||||
return $configuration;
|
||||
});
|
||||
$this['media-alchemyst.logger'] = $this->share(function(Application $app) {
|
||||
return $app['monolog'];
|
||||
});
|
||||
|
||||
$this->register(new MediaVorusServiceProvider());
|
||||
$this->register(new MonologServiceProvider());
|
||||
|
@@ -329,6 +329,14 @@ class ApplicationTest extends \PhraseanetPHPUnitAbstract
|
||||
}
|
||||
}
|
||||
|
||||
public function testThatMediaAlachemystIsRegistered()
|
||||
{
|
||||
$app = new Application('test');
|
||||
|
||||
$this->assertSame($app['monolog'], $app['media-alchemyst.logger']);
|
||||
$this->assertInstanceOf('MediaAlchemyst\Alchemyst', $app['media-alchemyst']);
|
||||
}
|
||||
|
||||
private function getAppThatReturnLocale()
|
||||
{
|
||||
$app = new Application('test');
|
||||
|
Reference in New Issue
Block a user