move logging related classes to appropriate namespace.

This commit is contained in:
meadsteve 2013-12-13 16:10:54 +00:00
parent f05ffb3081
commit 356a2293a1
9 changed files with 12 additions and 12 deletions

View file

@ -10,9 +10,9 @@
namespace PHPCI\Command; namespace PHPCI\Command;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\Helper\BuildDBLogHandler; use PHPCI\Logging\BuildDBLogHandler;
use PHPCI\Helper\LoggedBuildContextTidier; use PHPCI\Logging\LoggedBuildContextTidier;
use PHPCI\Helper\OutputLogHandler; use PHPCI\Logging\OutputLogHandler;
use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareInterface;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace PHPCI\Helper; namespace PHPCI\Logging;
use b8\Store; use b8\Store;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace PHPCI\Helper; namespace PHPCI\Logging;
use PHPCI\Model\Build; use PHPCI\Model\Build;

View file

@ -1,7 +1,7 @@
<?php <?php
namespace PHPCI\Helper; namespace PHPCI\Logging;
use Monolog\Logger; use Monolog\Logger;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace PHPCI\Helper; namespace PHPCI\Logging;
use Monolog\Handler\AbstractProcessingHandler; use Monolog\Handler\AbstractProcessingHandler;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;

View file

@ -2,7 +2,7 @@
namespace PHPCI\Plugin\Util; namespace PHPCI\Plugin\Util;
use PHPCI\BuildLogger; use \PHPCI\Logging\BuildLogger;
class Executor class Executor
{ {
@ -17,7 +17,7 @@ class Executor
*/ */
protected $pluginFactory; protected $pluginFactory;
function __construct(Factory $pluginFactory, BuildLogger $logger) function __construct(Factory $pluginFactory,BuildLogger $logger)
{ {
$this->pluginFactory = $pluginFactory; $this->pluginFactory = $pluginFactory;
$this->logger = $logger; $this->logger = $logger;

View file

@ -15,7 +15,7 @@ class CommandExecutorTest extends ProphecyTestCase
protected function setUp() protected function setUp()
{ {
parent::setUp(); parent::setUp();
$mockBuildLogger = $this->prophesize('\PHPCI\Logging\BuildLogger'); $mockBuildLogger = $this->prophesize('PHPCI\Logging\BuildLogger');
$this->testedExecutor = new CommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/"); $this->testedExecutor = new CommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/");
} }

View file

@ -1,6 +1,6 @@
<?php <?php
use \PHPCI\Helper\LoggerConfig; use \PHPCI\Logging\LoggerConfig;
class LoggerConfigTest extends PHPUnit_Framework_TestCase class LoggerConfigTest extends PHPUnit_Framework_TestCase
{ {

View file

@ -20,7 +20,7 @@ use PHPCI\Command\DaemonCommand;
use PHPCI\Command\PollCommand; use PHPCI\Command\PollCommand;
use Symfony\Component\Console\Application; use Symfony\Component\Console\Application;
$loggerConfig = \PHPCI\Helper\LoggerConfig::newFromFile(__DIR__ . "/loggerconfig.php"); $loggerConfig = \PHPCI\Logging\LoggerConfig::newFromFile(__DIR__ . "/loggerconfig.php");
$application = new Application(); $application = new Application();