Fix casing in LoggerConfig.

This commit is contained in:
meadsteve 2013-11-28 21:18:11 +00:00
parent f1052443ab
commit c8dc8a67b7
3 changed files with 15 additions and 15 deletions

View file

@ -46,7 +46,7 @@ class LoggerConfig {
* @param $name
* @return Logger
*/
public function GetFor($name) {
public function getFor($name) {
$handlers = $this->getHandlers(self::KEY_AlwaysLoaded);
$handlers = array_merge($handlers, $this->getHandlers($name));
return new Logger($name, $handlers);

View file

@ -24,11 +24,11 @@ $loggerConfig = \PHPCI\Helper\LoggerConfig::newFromFile(__DIR__ . "/loggerconfig
$application = new Application();
$application->add(new RunCommand($loggerConfig->GetFor('RunCommand')));
$application->add(new RunCommand($loggerConfig->getFor('RunCommand')));
$application->add(new InstallCommand);
$application->add(new UpdateCommand($loggerConfig->GetFor('UpdateCommand')));
$application->add(new UpdateCommand($loggerConfig->getFor('UpdateCommand')));
$application->add(new GenerateCommand);
$application->add(new DaemonCommand($loggerConfig->GetFor('DaemonCommand')));
$application->add(new PollCommand($loggerConfig->GetFor('PollCommand')));
$application->add(new DaemonCommand($loggerConfig->getFor('DaemonCommand')));
$application->add(new PollCommand($loggerConfig->getFor('PollCommand')));
$application->run();

View file

@ -2,7 +2,6 @@ build_settings:
verbose: false
ignore:
- "vendor"
- "Tests"
- "PHPCI/Command" # PHPMD complains about un-used parameters, but they are required.
- "public/install.php" # PHPCS really doesn't like PHP mixed with HTML (and so it shouldn't)
irc:
@ -13,14 +12,15 @@ build_settings:
test:
php_mess_detector:
php_code_sniffer:
standard: "PSR2"
php_loc:
phpunit:
directory:
"Tests/"
success:
irc:
message: "Build Success. %PROJECT_TITLE% - %COMMIT% - %BUILD_URI%"
failure:
irc:
message: "Build Failed. %PROJECT_TITLE% - %COMMIT% - %BUILD_URI%"
#success:
# irc:
# message: "Build Success. %PROJECT_TITLE% - %COMMIT% - %BUILD_URI%"
#failure:
# irc:
# message: "Build Failed. %PROJECT_TITLE% - %COMMIT% - %BUILD_URI%"