move front controller to web directory
This commit is contained in:
57
core/composer.lock
generated
57
core/composer.lock
generated
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"hash": "3c86ee22b1c2f391706858ad5eaa28ec",
|
"hash": "6753cff6ae4e98c641837505039c66fd",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "phing/phing",
|
"name": "phing/phing",
|
||||||
@@ -113,6 +113,55 @@
|
|||||||
"mapping"
|
"mapping"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "symfony-cmf/routing",
|
||||||
|
"version": "dev-master",
|
||||||
|
"target-dir": "Symfony/Cmf/Component/Routing",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/symfony-cmf/Routing",
|
||||||
|
"reference": "1.0.0-alpha3"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://github.com/symfony-cmf/Routing/archive/1.0.0-alpha3.zip",
|
||||||
|
"reference": "1.0.0-alpha3",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.2",
|
||||||
|
"symfony/routing": ">=2.1,<2.3-dev",
|
||||||
|
"symfony/http-kernel": ">=2.1,<2.3-dev"
|
||||||
|
},
|
||||||
|
"time": "2012-12-16 17:52:57",
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.0-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"installation-source": "source",
|
||||||
|
"autoload": {
|
||||||
|
"psr-0": {
|
||||||
|
"Symfony\\Cmf\\Component\\Routing": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Symfony CMF Community",
|
||||||
|
"homepage": "https://github.com/symfony-cmf/Routing/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Extends the Symfony2 routing component for dynamic routes and chaining several routers",
|
||||||
|
"homepage": "http://cmf.symfony.com",
|
||||||
|
"keywords": [
|
||||||
|
"database",
|
||||||
|
"routing"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/class-loader",
|
"name": "symfony/class-loader",
|
||||||
"version": "v2.1.4",
|
"version": "v2.1.4",
|
||||||
@@ -545,7 +594,7 @@
|
|||||||
|
|
||||||
],
|
],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"stability-flags": [
|
"stability-flags": {
|
||||||
|
"symfony-cmf/routing": 20
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
17
web/index.php
Normal file
17
web/index.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
use Thelia\Core\Thelia;
|
||||||
|
|
||||||
|
//use Symfony\Component\DependencyInjection;
|
||||||
|
|
||||||
|
$env = 'prod';
|
||||||
|
require __DIR__ . '/../core/bootstrap.php';
|
||||||
|
|
||||||
|
$request = Request::createFromGlobals();
|
||||||
|
|
||||||
|
$thelia = new Thelia($env, false);
|
||||||
|
|
||||||
|
$response = $thelia->handle($request)->prepare($request)->send();
|
||||||
|
|
||||||
|
$thelia->terminate($request, $response);
|
||||||
@@ -6,7 +6,7 @@ use Thelia\Core\Thelia;
|
|||||||
//use Symfony\Component\DependencyInjection;
|
//use Symfony\Component\DependencyInjection;
|
||||||
|
|
||||||
$env = 'dev';
|
$env = 'dev';
|
||||||
require __DIR__ . '/core/bootstrap.php';
|
require __DIR__ . '/../core/bootstrap.php';
|
||||||
|
|
||||||
$trustIp = array(
|
$trustIp = array(
|
||||||
'::1',
|
'::1',
|
||||||
Reference in New Issue
Block a user