Initial v2 framework

* Remove vendor library
* Update dependencies
* Add initial commands (not yet updated for this project)
* Move empir and linter into place
* Add pakefile
This commit is contained in:
Craig Davis
2014-01-11 15:22:10 -06:00
parent c6170ca243
commit 0995f3d061
103 changed files with 1562 additions and 18592 deletions

34
bin/resume2.php Executable file
View File

@@ -0,0 +1,34 @@
<?php
error_reporting(E_ALL | E_STRICT);
// If the dependencies aren't installed, we have to bail and offer some help.
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
exit("\nPlease run `composer install` to install dependencies.\n\n");
}
// Bootstrap our Silex application with the Composer autoloader
$app = require __DIR__ . '/vendor/autoload.php';
// Setup the namespace for our own namespace
$app->add('FogBugz', __DIR__ . '/src');
// Instantiate our Console application
$console = new FogBugz\Cli\Working();
// If we're running from phar, we get these values from the stub
if (!defined("IN_PHAR")) {
$project = json_decode(file_get_contents(__DIR__ . '/composer.json'));
}
// Config path can be set with a an ENV var
$configFile = getenv("FOGBUGZ_CONFIG") ? getenv("FOGBUGZ_CONFIG") : getenv("HOME") . "/.fogbugz.yml";
$templatePath = __DIR__ . '/templates';
// Init the app with these params
$console->initialize($configFile, $templatePath, $project);
// Execute the console app.
$console->run();
/* End of working.php */