<?php /** * Created by PhpStorm. * User: minhao * Date: 2016-03-29 * Time: 11:20 */ use Oasis\SlimApp\SlimApp; return SlimApp::app();
<?php /** * Created by PhpStorm. * User: minhao * Date: 2016-03-17 * Time: 20:24 */ use Composer\Autoload\ClassLoader; use Oasis\SlimApp\SlimApp; use Oasis\SlimApp\tests\TestAppConfig; use Symfony\Component\Debug\Debug; /** @var ClassLoader $loader */ $loader = (require_once __DIR__ . "/../vendor/autoload.php"); $loader->addPsr4("Oasis\\SlimApp\\Ut\\", __DIR__); SlimApp::app()->init(__DIR__ . "/", new TestAppConfig()); //Debug::enable();
#! /usr/local/bin/php <?php /** * Created by PhpStorm. * User: minhao * Date: 2016-01-09 * Time: 14:40 */ namespace Oasis\SlimApp; use Oasis\SlimApp\tests\TestAppConfig; require_once __DIR__ . "/vendor/autoload.php"; SlimApp::app()->init(__DIR__ . "/ut", new TestAppConfig()); SlimApp::app()->getConsoleApplication()->run();
<?php /** * Created by PhpStorm. * User: minhao * Date: 2016-03-17 * Time: 20:24 */ use Oasis\SlimApp\SlimApp; require_once __DIR__ . "/bootstrap.php"; mdebug(getcwd()); SlimApp::app()->getHttpKernel()->run();