Skip to content

Commit

Permalink
Introduced Propel commands system
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Nov 23, 2011
1 parent 468ca25 commit 9513f49
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/install_vendors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

git clone https://github.com/symfony/ClassLoader.git vendor/Symfony/Component/ClassLoader
git clone https://github.com/symfony/Yaml.git vendor/Symfony/Component/Yaml
git clone https://github.com/symfony/Console.git vendor/Symfony/Component/Console
4 changes: 4 additions & 0 deletions bin/propel
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php

include('propel.php');
16 changes: 16 additions & 0 deletions bin/propel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/local/bin/php
<?php

if (!class_exists('\Symfony\Component\Console\Application')) {
if (file_exists($file = __DIR__.'/../autoload.php')) {
require_once $file;
} elseif (file_exists($file = __DIR__.'/../autoload.php.dist')) {
require_once $file;
}
}

use \Symfony\Component\Console\Application;

$app = new Application('Propel', '2.0 (dev)');
//$app->add(new SimpleCommand());
$app->run();

0 comments on commit 9513f49

Please sign in to comment.