Skip to content

Commit

Permalink
inteligence create models, controllers and middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
paulooosrj committed Sep 3, 2018
1 parent d5e5e02 commit c8c314c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions khan
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env php

<?php

if (file_exists(__DIR__.'/../../autoload.php')) {
Expand All @@ -9,16 +7,19 @@
}

use Symfony\Component\Console\Application;

define("ROOT_FOLDER", __DIR__ );

function factory($command){
$command = "Command\\{$command}Command";
return new $command;
}

$botLearning = new Command\Bot\BotBuild();

$application = new Application('Khan CLI', '2.0');
$application->add(factory('Server'));
$application->add(factory('Live'));
$application->add(factory('Create'));
$application->add(factory('Api'));
$application->add(factory('Controller'));
Expand All @@ -32,4 +33,5 @@
$application->add(factory('Sass'));
$application->add(factory('Js'));
$application->add(factory('Make'));

$application->run();

0 comments on commit c8c314c

Please sign in to comment.