forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zendframework#4455] Wire log-related service config listeners
- LogWriterManager and LogProcessorManager services. - Wired into base service manager configuration, as well as ModuleManager feature provider system.
- Loading branch information
1 parent
da24228
commit 8c2ece8
Showing
6 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
library/Zend/ModuleManager/Feature/LogProcessorProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link https://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\ModuleManager\Feature; | ||
|
||
interface LogProcessorProviderInterface | ||
{ | ||
/** | ||
* Expected to return \Zend\ServiceManager\Config object or array to | ||
* seed such an object. | ||
* | ||
* @return array|\Zend\ServiceManager\Config | ||
*/ | ||
public function getLogProcessorConfig(); | ||
} |
21 changes: 21 additions & 0 deletions
21
library/Zend/ModuleManager/Feature/LogWriterProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link https://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\ModuleManager\Feature; | ||
|
||
interface LogWriterProviderInterface | ||
{ | ||
/** | ||
* Expected to return \Zend\ServiceManager\Config object or array to | ||
* seed such an object. | ||
* | ||
* @return array|\Zend\ServiceManager\Config | ||
*/ | ||
public function getLogWriterConfig(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link https://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\Mvc\Service; | ||
|
||
|
||
class LogProcessorManagerFactory extends AbstractPluginManagerFactory | ||
{ | ||
const PLUGIN_MANAGER_CLASS = 'Zend\Log\ProcessorPluginManager'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link https://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\Mvc\Service; | ||
|
||
|
||
class LogWriterManagerFactory extends AbstractPluginManagerFactory | ||
{ | ||
const PLUGIN_MANAGER_CLASS = 'Zend\Log\WriterPluginManager'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters