mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
symfony is there
This commit is contained in:
parent
0440249631
commit
93fd4692f6
291 changed files with 11356 additions and 1696 deletions
30
web/app.php
Normal file
30
web/app.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
use Symfony\Component\ClassLoader\ApcClassLoader;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
|
||||
|
||||
// Enable APC for autoloading to improve performance.
|
||||
// You should change the ApcClassLoader first argument to a unique prefix
|
||||
// in order to prevent cache key conflicts with other applications
|
||||
// also using APC.
|
||||
/*
|
||||
$apcLoader = new ApcClassLoader(sha1(__FILE__), $loader);
|
||||
$loader->unregister();
|
||||
$apcLoader->register(true);
|
||||
*/
|
||||
|
||||
require_once __DIR__.'/../app/AppKernel.php';
|
||||
//require_once __DIR__.'/../app/AppCache.php';
|
||||
|
||||
$kernel = new AppKernel('prod', false);
|
||||
$kernel->loadClassCache();
|
||||
//$kernel = new AppCache($kernel);
|
||||
|
||||
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
|
||||
//Request::enableHttpMethodParameterOverride();
|
||||
$request = Request::createFromGlobals();
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
$kernel->terminate($request, $response);
|
30
web/app_dev.php
Normal file
30
web/app_dev.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Debug\Debug;
|
||||
|
||||
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
|
||||
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
|
||||
//umask(0000);
|
||||
|
||||
// This check prevents access to debug front controllers that are deployed by accident to production servers.
|
||||
// Feel free to remove this, extend it, or make something more sophisticated.
|
||||
if (isset($_SERVER['HTTP_CLIENT_IP'])
|
||||
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|
||||
|| !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server')
|
||||
) {
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
||||
}
|
||||
|
||||
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
|
||||
Debug::enable();
|
||||
|
||||
require_once __DIR__.'/../app/AppKernel.php';
|
||||
|
||||
$kernel = new AppKernel('dev', true);
|
||||
$kernel->loadClassCache();
|
||||
$request = Request::createFromGlobals();
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
$kernel->terminate($request, $response);
|
1
web/bundles/acmedemo
Symbolic link
1
web/bundles/acmedemo
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../src/Acme/DemoBundle/Resources/public/
|
1
web/bundles/framework
Symbolic link
1
web/bundles/framework
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/public/
|
1
web/bundles/sensiodistribution
Symbolic link
1
web/bundles/sensiodistribution
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/public/
|
Loading…
Add table
Add a link
Reference in a new issue