Permalink
Browse files

Introduced Propel commands system

  • Loading branch information...
1 parent 468ca25 commit 9513f4920e478ec55fc86bf6da5c584827b8f0ba @willdurand willdurand committed Nov 21, 2011
Showing with 21 additions and 0 deletions.
  1. +1 −0 bin/install_vendors.sh
  2. +4 −0 bin/propel
  3. +16 −0 bin/propel.php
@@ -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
View
@@ -0,0 +1,4 @@
+#!/usr/bin/env php
+<?php
+
+include('propel.php');
View
@@ -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.