Skip to content

Commit

Permalink
Fix autoloading
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Mar 17, 2017
1 parent 1641611 commit 2b3dff1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion bin/onesky
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/usr/bin/env php
<?php

require __DIR__.'/../vendor/autoload.php';
$autoloadFiles = array(__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../autoload.php');

foreach ($autoloadFiles as $autoloadFile) {
if (file_exists($autoloadFile)) {
require_once $autoloadFile;
}
}

use Symfony\Component\Console\Application;

Expand Down
2 changes: 1 addition & 1 deletion src/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protected function configure()
{
$this
->setName('init')
->setDescription('Create empty'.self::FILENAME.' configuration file');
->setDescription('Create empty '.self::FILENAME.' configuration file');
}

protected function initialize(InputInterface $input, OutputInterface $output)
Expand Down

0 comments on commit 2b3dff1

Please sign in to comment.