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;
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;

View file

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

View file

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

View file

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

View file

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

View file

@ -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;

View file

@ -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__ . "/");
}

View file

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

View file

@ -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();