move logging related classes to appropriate namespace.
This commit is contained in:
parent
f05ffb3081
commit
356a2293a1
|
@ -10,9 +10,9 @@
|
|||
namespace PHPCI\Command;
|
||||
|
||||
use Monolog\Logger;
|
||||
use PHPCI\Helper\BuildDBLogHandler;
|
||||
use PHPCI\Helper\LoggedBuildContextTidier;
|
||||
use PHPCI\Helper\OutputLogHandler;
|
||||
use PHPCI\Logging\BuildDBLogHandler;
|
||||
use PHPCI\Logging\LoggedBuildContextTidier;
|
||||
use PHPCI\Logging\OutputLogHandler;
|
||||
use Psr\Log\LoggerAwareInterface;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace PHPCI\Helper;
|
||||
namespace PHPCI\Logging;
|
||||
|
||||
|
||||
use b8\Store;
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace PHPCI\Helper;
|
||||
namespace PHPCI\Logging;
|
||||
|
||||
use PHPCI\Model\Build;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
|
||||
namespace PHPCI\Helper;
|
||||
namespace PHPCI\Logging;
|
||||
|
||||
|
||||
use Monolog\Logger;
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace PHPCI\Helper;
|
||||
namespace PHPCI\Logging;
|
||||
|
||||
use Monolog\Handler\AbstractProcessingHandler;
|
||||
use Psr\Log\LogLevel;
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PHPCI\Plugin\Util;
|
||||
|
||||
use PHPCI\BuildLogger;
|
||||
use \PHPCI\Logging\BuildLogger;
|
||||
|
||||
class Executor
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ class Executor
|
|||
*/
|
||||
protected $pluginFactory;
|
||||
|
||||
function __construct(Factory $pluginFactory, BuildLogger $logger)
|
||||
function __construct(Factory $pluginFactory,BuildLogger $logger)
|
||||
{
|
||||
$this->pluginFactory = $pluginFactory;
|
||||
$this->logger = $logger;
|
||||
|
|
|
@ -15,7 +15,7 @@ class CommandExecutorTest extends ProphecyTestCase
|
|||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$mockBuildLogger = $this->prophesize('\PHPCI\Logging\BuildLogger');
|
||||
$mockBuildLogger = $this->prophesize('PHPCI\Logging\BuildLogger');
|
||||
$this->testedExecutor = new CommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/");
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use \PHPCI\Helper\LoggerConfig;
|
||||
use \PHPCI\Logging\LoggerConfig;
|
||||
|
||||
class LoggerConfigTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
|
2
console
2
console
|
@ -20,7 +20,7 @@ use PHPCI\Command\DaemonCommand;
|
|||
use PHPCI\Command\PollCommand;
|
||||
use Symfony\Component\Console\Application;
|
||||
|
||||
$loggerConfig = \PHPCI\Helper\LoggerConfig::newFromFile(__DIR__ . "/loggerconfig.php");
|
||||
$loggerConfig = \PHPCI\Logging\LoggerConfig::newFromFile(__DIR__ . "/loggerconfig.php");
|
||||
|
||||
$application = new Application();
|
||||
|
||||
|
|
Loading…
Reference in a new issue