Ejemplo n.º 1
0
<?php

/**
 * Created by PhpStorm.
 * User: minhao
 * Date: 2016-03-29
 * Time: 11:20
 */
use Oasis\SlimApp\SlimApp;
return SlimApp::app();
Ejemplo n.º 2
0
<?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();
Ejemplo n.º 3
0
#! /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();
Ejemplo n.º 4
0
<?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();