Upgraded to Symfony 2.2
This commit is contained in:
parent
3ea866ee42
commit
6e06b762fe
32
.gitignore
vendored
Normal file
32
.gitignore
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
# Bootstrap
|
||||
app/bootstrap*
|
||||
app/SymfonyRequirements.php
|
||||
|
||||
# Symfony directories
|
||||
vendor/
|
||||
app/logs/
|
||||
app/cache/
|
||||
web/uploads/
|
||||
web/bundles/
|
||||
|
||||
# Configuration files
|
||||
app/config/parameters.ini
|
||||
|
||||
# Composer related files
|
||||
vendor/composer/installed.json
|
||||
|
||||
# Assetic-generated .js and .css files
|
||||
web/js/
|
||||
web/css/
|
||||
|
||||
# Project's upload directory
|
||||
web/upload/
|
||||
|
||||
# Spool directory
|
||||
spool/
|
||||
|
||||
# Backup files
|
||||
*~
|
||||
|
||||
#NetBeans private files
|
||||
/nbproject/private/
|
45
.gitmodules
vendored
45
.gitmodules
vendored
@ -1,45 +0,0 @@
|
||||
[submodule "vendor/symfony"]
|
||||
path = vendor/symfony
|
||||
url = http://github.com/symfony/symfony.git
|
||||
[submodule "vendor/twig"]
|
||||
path = vendor/twig
|
||||
url = http://github.com/fabpot/Twig.git
|
||||
[submodule "vendor/monolog"]
|
||||
path = vendor/monolog
|
||||
url = http://github.com/Seldaek/monolog.git
|
||||
[submodule "vendor/doctrine-common"]
|
||||
path = vendor/doctrine-common
|
||||
url = http://github.com/doctrine/common.git
|
||||
[submodule "vendor/doctrine-dbal"]
|
||||
path = vendor/doctrine-dbal
|
||||
url = http://github.com/doctrine/dbal.git
|
||||
[submodule "vendor/doctrine"]
|
||||
path = vendor/doctrine
|
||||
url = http://github.com/doctrine/doctrine2.git
|
||||
[submodule "vendor/swiftmailer"]
|
||||
path = vendor/swiftmailer
|
||||
url = http://github.com/swiftmailer/swiftmailer.git
|
||||
[submodule "vendor/assetic"]
|
||||
path = vendor/assetic
|
||||
url = http://github.com/kriswallsmith/assetic.git
|
||||
[submodule "vendor/twig-extensions"]
|
||||
path = vendor/twig-extensions
|
||||
url = http://github.com/fabpot/Twig-extensions.git
|
||||
[submodule "vendor/metadata"]
|
||||
path = vendor/metadata
|
||||
url = http://github.com/schmittjoh/metadata.git
|
||||
[submodule "vendor/bundles/Sensio/Bundle/FrameworkExtraBundle"]
|
||||
path = vendor/bundles/Sensio/Bundle/FrameworkExtraBundle
|
||||
url = http://github.com/sensio/SensioFrameworkExtraBundle.git
|
||||
[submodule "vendor/bundles/JMS/SecurityExtraBundle"]
|
||||
path = vendor/bundles/JMS/SecurityExtraBundle
|
||||
url = http://github.com/schmittjoh/JMSSecurityExtraBundle.git
|
||||
[submodule "vendor/bundles/Sensio/Bundle/DistributionBundle"]
|
||||
path = vendor/bundles/Sensio/Bundle/DistributionBundle
|
||||
url = http://github.com/sensio/SensioDistributionBundle.git
|
||||
[submodule "vendor/bundles/Sensio/Bundle/GeneratorBundle"]
|
||||
path = vendor/bundles/Sensio/Bundle/GeneratorBundle
|
||||
url = http://github.com/sensio/SensioGeneratorBundle.git
|
||||
[submodule "vendor/bundles/Symfony/Bundle/AsseticBundle"]
|
||||
path = vendor/bundles/Symfony/Bundle/AsseticBundle
|
||||
url = http://github.com/symfony/AsseticBundle.git
|
@ -13,12 +13,15 @@ class AppKernel extends Kernel
|
||||
new Symfony\Bundle\TwigBundle\TwigBundle(),
|
||||
new Symfony\Bundle\MonologBundle\MonologBundle(),
|
||||
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
|
||||
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
|
||||
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
|
||||
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
|
||||
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
|
||||
new JMS\AopBundle\JMSAopBundle(),
|
||||
new JMS\DiExtraBundle\JMSDiExtraBundle($this),
|
||||
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
|
||||
new OpenScrum\InfoBundle\OpenScrumInfoBundle(),
|
||||
// Project bundles
|
||||
new OpenScrum\UserBundle\OpenScrumUserBundle(),
|
||||
new OpenScrum\InfoBundle\OpenScrumInfoBundle(),
|
||||
);
|
||||
|
||||
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
|
||||
|
@ -1,45 +1,16 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\ClassLoader\UniversalClassLoader;
|
||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
||||
|
||||
$loader = new UniversalClassLoader();
|
||||
$loader->registerNamespaces(array(
|
||||
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
|
||||
'Sensio' => __DIR__.'/../vendor/bundles',
|
||||
'JMS' => __DIR__.'/../vendor/bundles',
|
||||
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
|
||||
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
|
||||
'Doctrine' => __DIR__.'/../vendor/doctrine/lib',
|
||||
'Monolog' => __DIR__.'/../vendor/monolog/src',
|
||||
'Assetic' => __DIR__.'/../vendor/assetic/src',
|
||||
'Metadata' => __DIR__.'/../vendor/metadata/src',
|
||||
));
|
||||
$loader->registerPrefixes(array(
|
||||
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
|
||||
'Twig_' => __DIR__.'/../vendor/twig/lib',
|
||||
));
|
||||
$loader = require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
// intl
|
||||
if (!function_exists('intl_get_error_code')) {
|
||||
require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
|
||||
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
|
||||
|
||||
$loader->registerPrefixFallbacks(array(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs'));
|
||||
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
|
||||
}
|
||||
|
||||
$loader->registerNamespaceFallbacks(array(
|
||||
__DIR__.'/../src',
|
||||
));
|
||||
$loader->register();
|
||||
|
||||
AnnotationRegistry::registerLoader(function($class) use ($loader) {
|
||||
$loader->loadClass($class);
|
||||
return class_exists($class, false);
|
||||
});
|
||||
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
|
||||
|
||||
// Swiftmailer needs a special autoloader to allow
|
||||
// the lazy loading of the init file (which is expensive)
|
||||
require_once __DIR__.'/../vendor/swiftmailer/lib/classes/Swift.php';
|
||||
Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php');
|
||||
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
||||
|
||||
return $loader;
|
||||
|
File diff suppressed because it is too large
Load Diff
2
app/cache/.gitignore
vendored
2
app/cache/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
@ -1,104 +1,51 @@
|
||||
<?php
|
||||
|
||||
if (!$iniPath = get_cfg_var('cfg_file_path')) {
|
||||
$iniPath = 'WARNING: not using a php.ini file';
|
||||
}
|
||||
require_once dirname(__FILE__).'/SymfonyRequirements.php';
|
||||
|
||||
$symfonyRequirements = new SymfonyRequirements();
|
||||
|
||||
$iniPath = $symfonyRequirements->getPhpIniConfigPath();
|
||||
|
||||
echo "********************************\n";
|
||||
echo "* *\n";
|
||||
echo "* Symfony requirements check *\n";
|
||||
echo "* *\n";
|
||||
echo "********************************\n\n";
|
||||
echo sprintf("php.ini used by PHP: %s\n\n", $iniPath);
|
||||
|
||||
echo "** WARNING **\n";
|
||||
echo $iniPath ? sprintf("* Configuration file used by PHP: %s\n\n", $iniPath) : "* WARNING: No configuration file (php.ini) used by PHP!\n\n";
|
||||
|
||||
echo "** ATTENTION **\n";
|
||||
echo "* The PHP CLI can use a different php.ini file\n";
|
||||
echo "* than the one used with your web server.\n";
|
||||
if ('\\' == DIRECTORY_SEPARATOR) {
|
||||
echo "* (especially on the Windows platform)\n";
|
||||
}
|
||||
echo "* If this is the case, please ALSO launch this\n";
|
||||
echo "* utility from your web server.\n";
|
||||
echo "** WARNING **\n";
|
||||
echo "* To be on the safe side, please also launch the requirements check\n";
|
||||
echo "* from your web server using the web/config.php script.\n";
|
||||
|
||||
// mandatory
|
||||
echo_title("Mandatory requirements");
|
||||
check(version_compare(phpversion(), '5.3.2', '>='), sprintf('Checking that PHP version is at least 5.3.2 (%s installed)', phpversion()), 'Install PHP 5.3.2 or newer (current version is '.phpversion(), true);
|
||||
check(ini_get('date.timezone'), 'Checking that the "date.timezone" setting is set', 'Set the "date.timezone" setting in php.ini (like Europe/Paris)', true);
|
||||
check(is_writable(__DIR__.'/../app/cache'), sprintf('Checking that app/cache/ directory is writable'), 'Change the permissions of the app/cache/ directory so that the web server can write in it', true);
|
||||
check(is_writable(__DIR__.'/../app/logs'), sprintf('Checking that the app/logs/ directory is writable'), 'Change the permissions of the app/logs/ directory so that the web server can write in it', true);
|
||||
check(function_exists('json_encode'), 'Checking that the json_encode() is available', 'Install and enable the json extension', true);
|
||||
check(class_exists('SQLite3') || in_array('sqlite', PDO::getAvailableDrivers()), 'Checking that the SQLite3 or PDO_SQLite extension is available', 'Install and enable the SQLite3 or PDO_SQLite extension.', true);
|
||||
check(function_exists('session_start'), 'Checking that the session_start() is available', 'Install and enable the session extension', true);
|
||||
check(function_exists('ctype_alpha'), 'Checking that the ctype_alpha() is available', 'Install and enable the ctype extension', true);
|
||||
check(function_exists('token_get_all'), 'Checking that the token_get_all() is available', 'Install and enable the tokenizer extension', true);
|
||||
check(!(function_exists('apc_store') && ini_get('apc.enabled')) || version_compare(phpversion('apc'), '3.0.17', '>='), 'Checking that the APC version is at least 3.0.17', 'Upgrade your APC extension (3.0.17+)', true);
|
||||
echo_title('Mandatory requirements');
|
||||
|
||||
// warnings
|
||||
echo_title("Optional checks");
|
||||
check(class_exists('DomDocument'), 'Checking that the PHP-XML module is installed', 'Install and enable the php-xml module', false);
|
||||
check(function_exists('token_get_all'), 'Checking that the token_get_all() function is available', 'Install and enable the Tokenizer extension (highly recommended)', false);
|
||||
check(function_exists('mb_strlen'), 'Checking that the mb_strlen() function is available', 'Install and enable the mbstring extension', false);
|
||||
check(function_exists('iconv'), 'Checking that the iconv() function is available', 'Install and enable the iconv extension', false);
|
||||
check(function_exists('utf8_decode'), 'Checking that the utf8_decode() is available', 'Install and enable the XML extension', false);
|
||||
if (PHP_OS != 'WINNT') {
|
||||
check(function_exists('posix_isatty'), 'Checking that the posix_isatty() is available', 'Install and enable the php_posix extension (used to colorized the CLI output)', false);
|
||||
}
|
||||
check(class_exists('Locale'), 'Checking that the intl extension is available', 'Install and enable the intl extension (used for validators)', false);
|
||||
if (class_exists('Locale')) {
|
||||
$version = '';
|
||||
|
||||
if (defined('INTL_ICU_VERSION')) {
|
||||
$version = INTL_ICU_VERSION;
|
||||
} else {
|
||||
$reflector = new \ReflectionExtension('intl');
|
||||
|
||||
ob_start();
|
||||
$reflector->info();
|
||||
$output = strip_tags(ob_get_clean());
|
||||
|
||||
preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches);
|
||||
$version = $matches[1];
|
||||
foreach ($symfonyRequirements->getRequirements() as $req) {
|
||||
echo_requirement($req);
|
||||
}
|
||||
|
||||
check(version_compare($version, '4.0', '>='), 'Checking that the intl ICU version is at least 4+', 'Upgrade your intl extension with a newer ICU version (4+)', false);
|
||||
}
|
||||
echo_title('Optional recommendations');
|
||||
|
||||
$accelerator =
|
||||
(function_exists('apc_store') && ini_get('apc.enabled'))
|
||||
||
|
||||
function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
|
||||
||
|
||||
function_exists('xcache_set')
|
||||
;
|
||||
check($accelerator, 'Checking that a PHP accelerator is installed', 'Install a PHP accelerator like APC (highly recommended)', false);
|
||||
|
||||
check(!ini_get('short_open_tag'), 'Checking that php.ini has short_open_tag set to off', 'Set short_open_tag to off in php.ini', false);
|
||||
check(!ini_get('magic_quotes_gpc'), 'Checking that php.ini has magic_quotes_gpc set to off', 'Set magic_quotes_gpc to off in php.ini', false);
|
||||
check(!ini_get('register_globals'), 'Checking that php.ini has register_globals set to off', 'Set register_globals to off in php.ini', false);
|
||||
check(!ini_get('session.auto_start'), 'Checking that php.ini has session.auto_start set to off', 'Set session.auto_start to off in php.ini', false);
|
||||
|
||||
echo_title("Optional checks (Doctrine)");
|
||||
|
||||
check(class_exists('PDO'), 'Checking that PDO is installed', 'Install PDO (mandatory for Doctrine)', false);
|
||||
if (class_exists('PDO')) {
|
||||
$drivers = PDO::getAvailableDrivers();
|
||||
check(count($drivers), 'Checking that PDO has some drivers installed: '.implode(', ', $drivers), 'Install PDO drivers (mandatory for Doctrine)');
|
||||
foreach ($symfonyRequirements->getRecommendations() as $req) {
|
||||
echo_requirement($req);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks a configuration.
|
||||
* Prints a Requirement instance
|
||||
*/
|
||||
function check($boolean, $message, $help = '', $fatal = false)
|
||||
function echo_requirement(Requirement $requirement)
|
||||
{
|
||||
echo $boolean ? " OK " : sprintf("\n\n[[%s]] ", $fatal ? ' ERROR ' : 'WARNING');
|
||||
echo sprintf("$message%s\n", $boolean ? '' : ': FAILED');
|
||||
$result = $requirement->isFulfilled() ? 'OK' : ($requirement->isOptional() ? 'WARNING' : 'ERROR');
|
||||
echo ' ' . str_pad($result, 9);
|
||||
echo $requirement->getTestMessage() . "\n";
|
||||
|
||||
if (!$boolean) {
|
||||
echo " *** $help ***\n";
|
||||
if ($fatal) {
|
||||
exit("You must fix this problem before resuming the check.\n");
|
||||
}
|
||||
if (!$requirement->isFulfilled()) {
|
||||
echo sprintf(" %s\n\n", $requirement->getHelpText());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,15 +6,12 @@ framework:
|
||||
#esi: ~
|
||||
translator: { fallback: %locale% }
|
||||
secret: %secret%
|
||||
charset: UTF-8
|
||||
router: { resource: "%kernel.root_dir%/config/routing.yml" }
|
||||
form: true
|
||||
csrf_protection: true
|
||||
validation: { enable_annotations: true }
|
||||
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
|
||||
session:
|
||||
default_locale: %locale%
|
||||
auto_start: true
|
||||
session: ~
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
@ -54,7 +51,3 @@ swiftmailer:
|
||||
host: %mailer_host%
|
||||
username: %mailer_user%
|
||||
password: %mailer_password%
|
||||
|
||||
jms_security_extra:
|
||||
secure_controllers: true
|
||||
secure_all_services: false
|
||||
|
@ -1,16 +1,17 @@
|
||||
jms_security_extra:
|
||||
secure_all_services: false
|
||||
expressions: true
|
||||
|
||||
security:
|
||||
encoders:
|
||||
Symfony\Component\Security\Core\User\User: plaintext
|
||||
|
||||
role_hierarchy:
|
||||
ROLE_ADMIN: ROLE_USER
|
||||
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
|
||||
|
||||
providers:
|
||||
in_memory:
|
||||
memory:
|
||||
users:
|
||||
user: { password: userpass, roles: [ 'ROLE_USER' ] }
|
||||
admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
|
||||
|
||||
firewalls:
|
||||
dev:
|
||||
|
@ -15,8 +15,8 @@ use Symfony\Component\Console\Input\ArgvInput;
|
||||
|
||||
$input = new ArgvInput();
|
||||
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
|
||||
$debug = !$input->hasParameterOption(array('--no-debug', ''));
|
||||
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
|
||||
|
||||
$kernel = new AppKernel($env, $debug);
|
||||
$application = new Application($kernel);
|
||||
$application->run();
|
||||
$application->run($input);
|
||||
|
3
app/logs/.gitignore
vendored
3
app/logs/.gitignore
vendored
@ -1,3 +0,0 @@
|
||||
*
|
||||
!.gitkeep
|
||||
!.gitignore
|
@ -1 +0,0 @@
|
||||
deny from all
|
240
bin/vendors
240
bin/vendors
@ -1,240 +0,0 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony Standard Edition.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Florian Preusner <florian@preusner.com>
|
||||
*/
|
||||
|
||||
$rootDir = dirname(__DIR__);
|
||||
$vendorName = 'vendor';
|
||||
$vendorDir = $rootDir . '/' . $vendorName;
|
||||
$submodule = false;
|
||||
$cloneOptions = '';
|
||||
$delete = false;
|
||||
$install = true;
|
||||
|
||||
$commands = array(
|
||||
'install' => 'install vendors as specified in deps or deps.lock (recommended)',
|
||||
'update' => 'update vendors to their latest versions (as specified in deps)',
|
||||
'delete' => 'remove vendors',
|
||||
'reinstall' => 'delete and install',
|
||||
'submodule:install' => 'install vendors as submodules',
|
||||
'submodule:update' => 'update vendors to their latest versions (as specified in deps)',
|
||||
'submodule:delete' => 'remove vendors',
|
||||
'submodule:reinstall' => 'delete and install'
|
||||
);
|
||||
|
||||
|
||||
|
||||
array_shift($argv);
|
||||
if (!isset($argv[0]) || in_array('help', $argv)) {
|
||||
|
||||
$help = "Symfony2 vendors script management.\n";
|
||||
$help .= "Specify a command to run:\n\n";
|
||||
|
||||
foreach($commands as $cmd => $info) {
|
||||
|
||||
$help .= str_pad($cmd, 21, ' ') . ": $info\n";
|
||||
}
|
||||
|
||||
exit($help . "\n");
|
||||
}
|
||||
|
||||
if (!in_array($command = array_shift($argv), array_keys($commands))) {
|
||||
exit(sprintf("Command \"%s\" does not exist.\n", $command));
|
||||
}
|
||||
|
||||
if (!is_dir($vendorDir)) {
|
||||
mkdir($vendorDir, 0777, true);
|
||||
}
|
||||
|
||||
if (strpos($command, 'submodule') !== false) {
|
||||
|
||||
$submodule = true;
|
||||
$command = str_replace('submodule:', '', $command);
|
||||
|
||||
if(!is_dir($rootDir . '/.git')) {
|
||||
|
||||
exit("This project is not a git repository. To use submodules it should be a repository :)\n");
|
||||
}
|
||||
}
|
||||
|
||||
// versions
|
||||
$versions = array();
|
||||
if ('install' === $command && file_exists($rootDir.'/deps.lock')) {
|
||||
foreach (file($rootDir.'/deps.lock', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) as $line) {
|
||||
$parts = array_values(array_filter(explode(' ', $line)));
|
||||
if (2 !== count($parts)) {
|
||||
exit(sprintf('The deps version file is not valid (near "%s")', $line));
|
||||
}
|
||||
$versions[$parts[0]] = $parts[1];
|
||||
}
|
||||
}
|
||||
|
||||
if('delete' === $command) {
|
||||
$delete = true;
|
||||
$install = false;
|
||||
}
|
||||
|
||||
if('reinstall' === $command) {
|
||||
$delete = true;
|
||||
}
|
||||
|
||||
$newversions = array();
|
||||
$deps = parse_ini_file($rootDir.'/deps', true, INI_SCANNER_RAW);
|
||||
foreach ($deps as $name => $dep) {
|
||||
// revision
|
||||
if (isset($versions[$name])) {
|
||||
$rev = $versions[$name];
|
||||
} else {
|
||||
$rev = isset($dep['version']) ? $dep['version'] : 'origin/HEAD';
|
||||
}
|
||||
|
||||
// make sure to run commands on rootDir
|
||||
system("cd $rootDir");
|
||||
|
||||
// install dir
|
||||
if($submodule) {
|
||||
|
||||
$installDir = isset($dep['target']) ? $vendorName . $dep['target'] : $vendorName . '/' . $name;
|
||||
} else {
|
||||
|
||||
$installDir = isset($dep['target']) ? $vendorDir . $dep['target'] : $vendorDir . '/' . $name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($delete) {
|
||||
|
||||
echo "> Removing $name\n";
|
||||
|
||||
if($submodule) {
|
||||
|
||||
deleteSubmodule($installDir, $rootDir);
|
||||
}
|
||||
|
||||
if(PHP_OS == 'WINNT') {
|
||||
|
||||
system('rmdir /S /Q ' . escapeshellarg(realpath($installDir)));
|
||||
} else {
|
||||
|
||||
system('rm -rf ' . escapeshellarg($installDir));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($install) {
|
||||
|
||||
echo "> Installing/Updating $name\n";
|
||||
|
||||
// url
|
||||
if (!isset($dep['git'])) {
|
||||
exit(sprintf('The "git" value for the "%s" dependency must be set.', $name));
|
||||
}
|
||||
$url = $dep['git'];
|
||||
|
||||
if($submodule) {
|
||||
|
||||
$cmd = sprintf('git submodule add %s %s', escapeshellarg($url), escapeshellarg($installDir));
|
||||
$cmd .= ' && git submodule init';
|
||||
|
||||
} else {
|
||||
|
||||
$cmd = sprintf('git clone %s %s', escapeshellarg($url), escapeshellarg($installDir));
|
||||
}
|
||||
|
||||
echo " $cmd\n";
|
||||
|
||||
system($cmd);
|
||||
|
||||
system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
|
||||
}
|
||||
|
||||
if ('update' === $command) {
|
||||
ob_start();
|
||||
system(sprintf('cd %s && git log -n 1 --format=%%H', escapeshellarg($installDir)));
|
||||
$newversions[] = trim($name.' '.ob_get_clean());
|
||||
}
|
||||
}
|
||||
|
||||
// update?
|
||||
if ('update' === $command) {
|
||||
file_put_contents($rootDir.'/deps.lock', implode("\n", $newversions));
|
||||
}
|
||||
|
||||
if($install) {
|
||||
|
||||
// php on windows can't use the shebang line from system()
|
||||
$interpreter = PHP_OS == 'WINNT' ? 'php.exe' : '';
|
||||
|
||||
// Update the bootstrap files
|
||||
//system(sprintf('%s %s', $interpreter, escapeshellarg($rootDir.'/bin/build_bootstrap')));
|
||||
|
||||
// Update assets
|
||||
system(sprintf('%s %s assets:install --symlink %s', $interpreter, escapeshellarg($rootDir.'/app/console'), escapeshellarg($rootDir.'/web')));
|
||||
|
||||
// Remove the cache
|
||||
system(sprintf('%s %s cache:clear --no-warmup', $interpreter, escapeshellarg($rootDir.'/app/console')));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function deleteSubmodule($name, $rootDir) {
|
||||
|
||||
$gitModules = $rootDir . '/.gitmodules';
|
||||
$gitConfig = $rootDir . '/.git/config';
|
||||
|
||||
$files = array($gitModules, $gitConfig);
|
||||
|
||||
foreach($files as $file) :
|
||||
|
||||
if(file_exists($file)) {
|
||||
|
||||
$fileReturn = array();
|
||||
$found = false;
|
||||
|
||||
foreach(file($file) as $line) {
|
||||
|
||||
if(strpos($line, '"' . $name . '"') !== false) {
|
||||
|
||||
$found = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if($found) {
|
||||
|
||||
if($line{0} != '[') {
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$found = false;
|
||||
}
|
||||
|
||||
array_push($fileReturn, $line);
|
||||
}
|
||||
|
||||
$handle = fopen($file, 'wt');
|
||||
|
||||
if($handle) {
|
||||
|
||||
fwrite($handle, implode($fileReturn));
|
||||
fclose($handle);
|
||||
}
|
||||
}
|
||||
endforeach;
|
||||
|
||||
$cmd = "git rm --cached --force $name";
|
||||
|
||||
echo " $cmd\n";
|
||||
system($cmd);
|
||||
}
|
29
composer.json
Normal file
29
composer.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "gergelypolonkai/openscrum",
|
||||
"description": "OpenScrum project",
|
||||
"autoload": {
|
||||
"psr-0": { "": "src/" }
|
||||
},
|
||||
"require": {
|
||||
"symfony/framework-standard-edition": "2.2.*"
|
||||
},
|
||||
"scripts": {
|
||||
"post-install-cmd": [
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
|
||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
|
||||
]
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"extra": {
|
||||
"symfony-app-dir": "app",
|
||||
"symfony-web-dir": "web"
|
||||
}
|
||||
}
|
1795
composer.lock
generated
Normal file
1795
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
63
deps
63
deps
@ -1,63 +0,0 @@
|
||||
[symfony]
|
||||
git=http://github.com/symfony/symfony.git
|
||||
version=v2.0.12
|
||||
|
||||
[twig]
|
||||
git=http://github.com/fabpot/Twig.git
|
||||
version=v1.6.2
|
||||
|
||||
[monolog]
|
||||
git=http://github.com/Seldaek/monolog.git
|
||||
version=1.0.2
|
||||
|
||||
[doctrine-common]
|
||||
git=http://github.com/doctrine/common.git
|
||||
version=2.1.4
|
||||
|
||||
[doctrine-dbal]
|
||||
git=http://github.com/doctrine/dbal.git
|
||||
version=2.1.6
|
||||
|
||||
[doctrine]
|
||||
git=http://github.com/doctrine/doctrine2.git
|
||||
version=2.1.6
|
||||
|
||||
[swiftmailer]
|
||||
git=http://github.com/swiftmailer/swiftmailer.git
|
||||
version=v4.1.5
|
||||
|
||||
[assetic]
|
||||
git=http://github.com/kriswallsmith/assetic.git
|
||||
version=v1.0.3
|
||||
|
||||
[twig-extensions]
|
||||
git=http://github.com/fabpot/Twig-extensions.git
|
||||
|
||||
[metadata]
|
||||
git=http://github.com/schmittjoh/metadata.git
|
||||
version=1.0.0
|
||||
|
||||
[SensioFrameworkExtraBundle]
|
||||
git=http://github.com/sensio/SensioFrameworkExtraBundle.git
|
||||
target=/bundles/Sensio/Bundle/FrameworkExtraBundle
|
||||
version=origin/2.0
|
||||
|
||||
[JMSSecurityExtraBundle]
|
||||
git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
|
||||
target=/bundles/JMS/SecurityExtraBundle
|
||||
version=origin/1.0.x
|
||||
|
||||
[SensioDistributionBundle]
|
||||
git=http://github.com/sensio/SensioDistributionBundle.git
|
||||
target=/bundles/Sensio/Bundle/DistributionBundle
|
||||
version=origin/2.0
|
||||
|
||||
[SensioGeneratorBundle]
|
||||
git=http://github.com/sensio/SensioGeneratorBundle.git
|
||||
target=/bundles/Sensio/Bundle/GeneratorBundle
|
||||
version=origin/2.0
|
||||
|
||||
[AsseticBundle]
|
||||
git=http://github.com/symfony/AsseticBundle.git
|
||||
target=/bundles/Symfony/Bundle/AsseticBundle
|
||||
version=v1.0.1
|
15
deps.lock
15
deps.lock
@ -1,15 +0,0 @@
|
||||
symfony v2.0.12
|
||||
twig v1.6.2
|
||||
monolog 1.0.2
|
||||
doctrine-common 2.1.4
|
||||
doctrine-dbal 2.1.6
|
||||
doctrine 2.1.6
|
||||
swiftmailer v4.1.5
|
||||
assetic v1.0.3
|
||||
twig-extensions 1dfff8e793f50f651c4f74f796c2c68a4aee3147
|
||||
metadata 1.0.0
|
||||
SensioFrameworkExtraBundle 638f545b7020b9e9d5944a7e3167f60ed848250d
|
||||
JMSSecurityExtraBundle 541a4c242328dc04b99540c75346cc74a7c0cfb5
|
||||
SensioDistributionBundle 20b66a408084ad8752f98e50f10533f5245310bf
|
||||
SensioGeneratorBundle b1ccb78c1743f30817b0fce9bb5c6baff6ed7bf8
|
||||
AsseticBundle v1.0.1
|
7
nbproject/project.properties
Normal file
7
nbproject/project.properties
Normal file
@ -0,0 +1,7 @@
|
||||
include.path=${php.global.include.path}
|
||||
php.version=PHP_54
|
||||
source.encoding=UTF-8
|
||||
src.dir=.
|
||||
tags.asp=false
|
||||
tags.short=true
|
||||
web.root=.
|
9
nbproject/project.xml
Normal file
9
nbproject/project.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||
<type>org.netbeans.modules.php.project</type>
|
||||
<configuration>
|
||||
<data xmlns="http://www.netbeans.org/ns/php-project/1">
|
||||
<name>openscrum</name>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
@ -10,11 +10,11 @@ class DefaultController extends Controller
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
return $this->render('OpenScrumInfoBundle:' . $this->get('session')->getLocale() . ':index.html.twig', array());
|
||||
return $this->render('OpenScrumInfoBundle:' . $this->getRequest()->getLocale() . ':index.html.twig', array());
|
||||
}
|
||||
|
||||
public function infopageAction($page)
|
||||
{
|
||||
return $this->render('OpenScrumInfoBundle:' . $this->get('session')->getLocale() . ':' . $page . '.html.twig', array());
|
||||
return $this->render('OpenScrumInfoBundle:' . $this->getRequest()->getLocale() . ':' . $page . '.html.twig', array());
|
||||
}
|
||||
}
|
||||
|
1
vendor/assetic
vendored
1
vendor/assetic
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 4aeef88b7908510d0bcbbde357f0adf470534ed8
|
1
vendor/bundles/JMS/SecurityExtraBundle
vendored
1
vendor/bundles/JMS/SecurityExtraBundle
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 541a4c242328dc04b99540c75346cc74a7c0cfb5
|
@ -1 +0,0 @@
|
||||
Subproject commit 20b66a408084ad8752f98e50f10533f5245310bf
|
@ -1 +0,0 @@
|
||||
Subproject commit 638f545b7020b9e9d5944a7e3167f60ed848250d
|
1
vendor/bundles/Sensio/Bundle/GeneratorBundle
vendored
1
vendor/bundles/Sensio/Bundle/GeneratorBundle
vendored
@ -1 +0,0 @@
|
||||
Subproject commit b1ccb78c1743f30817b0fce9bb5c6baff6ed7bf8
|
1
vendor/bundles/Symfony/Bundle/AsseticBundle
vendored
1
vendor/bundles/Symfony/Bundle/AsseticBundle
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 41b5913b5086a0909af92adcb4a6005ee0051b16
|
1
vendor/doctrine
vendored
1
vendor/doctrine
vendored
@ -1 +0,0 @@
|
||||
Subproject commit e1647229cd2544bd77f10620e1b95a5781c4a733
|
1
vendor/doctrine-common
vendored
1
vendor/doctrine-common
vendored
@ -1 +0,0 @@
|
||||
Subproject commit b886898821288d305862ee9c567cc5b5cbb4c0dc
|
1
vendor/doctrine-dbal
vendored
1
vendor/doctrine-dbal
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 148a049df448af9772259e69a034e51c0c080805
|
1
vendor/metadata
vendored
1
vendor/metadata
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 8717ad2a5689480765d9ffafe925cd8a2457e582
|
1
vendor/monolog
vendored
1
vendor/monolog
vendored
@ -1 +0,0 @@
|
||||
Subproject commit b704c49a3051536f67f2d39f13568f74615b9922
|
1
vendor/swiftmailer
vendored
1
vendor/swiftmailer
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 982b4c9498b7dd85e70f6d35e65d909c888e6345
|
1
vendor/symfony
vendored
1
vendor/symfony
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 0ab776227a0d6586c9f1be379926acaa94f64a01
|
1
vendor/twig
vendored
1
vendor/twig
vendored
@ -1 +0,0 @@
|
||||
Subproject commit f43cc520d6abb3868d36a3011874afbf13166317
|
1
vendor/twig-extensions
vendored
1
vendor/twig-extensions
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 1dfff8e793f50f651c4f74f796c2c68a4aee3147
|
20
web/app.php
20
web/app.php
@ -1,12 +1,24 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/../app/bootstrap.php.cache';
|
||||
use Symfony\Component\ClassLoader\ApcClassLoader;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
|
||||
|
||||
// Use APC for autoloading to improve performance
|
||||
// Change 'sf2' by the prefix you want in order to prevent key conflict with another application
|
||||
/*
|
||||
$loader = new ApcClassLoader('sf2', $loader);
|
||||
$loader->register(true);
|
||||
*/
|
||||
|
||||
require_once __DIR__.'/../app/AppKernel.php';
|
||||
//require_once __DIR__.'/../app/AppCache.php';
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
$kernel = new AppKernel('prod', false);
|
||||
$kernel->loadClassCache();
|
||||
//$kernel = new AppCache($kernel);
|
||||
$kernel->handle(Request::createFromGlobals())->send();
|
||||
$request = Request::createFromGlobals();
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
$kernel->terminate($request, $response);
|
||||
|
@ -1,18 +1,29 @@
|
||||
<?php
|
||||
|
||||
// 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.
|
||||
require_once __DIR__.'/check_ip.php';
|
||||
|
||||
require_once __DIR__.'/../app/bootstrap.php.cache';
|
||||
require_once __DIR__.'/../app/AppKernel.php';
|
||||
require 'dev-ips.php';
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
// 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'], $dev_ips)
|
||||
) {
|
||||
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';
|
||||
require_once __DIR__.'/../app/AppKernel.php';
|
||||
|
||||
$kernel = new AppKernel('dev', true);
|
||||
$kernel->loadClassCache();
|
||||
$kernel->handle(Request::createFromGlobals())->send();
|
||||
$request = Request::createFromGlobals();
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
$kernel->terminate($request, $response);
|
||||
|
@ -1 +0,0 @@
|
||||
/var/www/vhosts/demo.openscrum.org/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/public
|
@ -1 +0,0 @@
|
||||
/var/www/vhosts/demo.openscrum.org/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/public
|
@ -1 +0,0 @@
|
||||
/var/www/vhosts/demo.openscrum.org/vendor/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/public
|
218
web/config.php
218
web/config.php
@ -4,203 +4,121 @@ if (!isset($_SERVER['HTTP_HOST'])) {
|
||||
exit('This script cannot be run from the CLI. Run it from a browser.');
|
||||
}
|
||||
|
||||
require_once __DIR__.'/check_ip.php';
|
||||
|
||||
$majorProblems = array();
|
||||
$minorProblems = array();
|
||||
$phpini = false;
|
||||
|
||||
// minimum
|
||||
if (!version_compare(phpversion(), '5.3.2', '>=')) {
|
||||
$version = phpversion();
|
||||
$majorProblems[] = <<<EOF
|
||||
You are running PHP version "<strong>$version</strong>", but Symfony
|
||||
needs at least PHP "<strong>5.3.2</strong>" to run. Before using Symfony, install
|
||||
PHP "<strong>5.3.2</strong>" or newer.
|
||||
EOF;
|
||||
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
|
||||
'127.0.0.1',
|
||||
'::1',
|
||||
))) {
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
exit('This script is only accessible from localhost.');
|
||||
}
|
||||
|
||||
if (!is_writable(__DIR__ . '/../app/cache')) {
|
||||
$majorProblems[] = 'Change the permissions of the "<strong>app/cache/</strong>"
|
||||
directory so that the web server can write into it.';
|
||||
}
|
||||
require_once dirname(__FILE__).'/../app/SymfonyRequirements.php';
|
||||
|
||||
if (!is_writable(__DIR__ . '/../app/logs')) {
|
||||
$majorProblems[] = 'Change the permissions of the "<strong>app/logs/</strong>"
|
||||
directory so that the web server can write into it.';
|
||||
}
|
||||
$symfonyRequirements = new SymfonyRequirements();
|
||||
|
||||
// extensions
|
||||
if (!class_exists('DomDocument')) {
|
||||
$minorProblems[] = 'Install and enable the <strong>php-xml</strong> module.';
|
||||
}
|
||||
$majorProblems = $symfonyRequirements->getFailedRequirements();
|
||||
$minorProblems = $symfonyRequirements->getFailedRecommendations();
|
||||
|
||||
if (!((function_exists('apc_store') && ini_get('apc.enabled')) || function_exists('eaccelerator_put') && ini_get('eaccelerator.enable') || function_exists('xcache_set'))) {
|
||||
$minorProblems[] = 'Install and enable a <strong>PHP accelerator</strong> like APC (highly recommended).';
|
||||
}
|
||||
|
||||
if (!(!(function_exists('apc_store') && ini_get('apc.enabled')) || version_compare(phpversion('apc'), '3.0.17', '>='))) {
|
||||
$majorProblems[] = 'Upgrade your <strong>APC</strong> extension (3.0.17+)';
|
||||
}
|
||||
|
||||
if (!function_exists('token_get_all')) {
|
||||
$minorProblems[] = 'Install and enable the <strong>Tokenizer</strong> extension.';
|
||||
}
|
||||
|
||||
if (!function_exists('mb_strlen')) {
|
||||
$minorProblems[] = 'Install and enable the <strong>mbstring</strong> extension.';
|
||||
}
|
||||
|
||||
if (!function_exists('iconv')) {
|
||||
$minorProblems[] = 'Install and enable the <strong>iconv</strong> extension.';
|
||||
}
|
||||
|
||||
if (!function_exists('utf8_decode')) {
|
||||
$minorProblems[] = 'Install and enable the <strong>XML</strong> extension.';
|
||||
}
|
||||
|
||||
if (PHP_OS != 'WINNT' && !function_exists('posix_isatty')) {
|
||||
$minorProblems[] = 'Install and enable the <strong>php_posix</strong> extension (used to colorize the CLI output).';
|
||||
}
|
||||
|
||||
if (!class_exists('Locale')) {
|
||||
$minorProblems[] = 'Install and enable the <strong>intl</strong> extension.';
|
||||
} else {
|
||||
$version = '';
|
||||
|
||||
if (defined('INTL_ICU_VERSION')) {
|
||||
$version = INTL_ICU_VERSION;
|
||||
} else {
|
||||
$reflector = new \ReflectionExtension('intl');
|
||||
|
||||
ob_start();
|
||||
$reflector->info();
|
||||
$output = strip_tags(ob_get_clean());
|
||||
|
||||
preg_match('/^ICU version (.*)$/m', $output, $matches);
|
||||
$version = $matches[1];
|
||||
}
|
||||
|
||||
if (!version_compare($version, '4.0', '>=')) {
|
||||
$minorProblems[] = 'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).';
|
||||
}
|
||||
}
|
||||
|
||||
if (!class_exists('SQLite3') && !in_array('sqlite', PDO::getAvailableDrivers())) {
|
||||
$majorProblems[] = 'Install and enable the <strong>SQLite3</strong> or <strong>PDO_SQLite</strong> extension.';
|
||||
}
|
||||
|
||||
if (!function_exists('json_encode')) {
|
||||
$majorProblems[] = 'Install and enable the <strong>json</strong> extension.';
|
||||
}
|
||||
|
||||
if (!function_exists('session_start')) {
|
||||
$majorProblems[] = 'Install and enable the <strong>session</strong> extension.';
|
||||
}
|
||||
|
||||
if (!function_exists('ctype_alpha')) {
|
||||
$majorProblems[] = 'Install and enable the <strong>ctype</strong> extension.';
|
||||
}
|
||||
|
||||
if (!function_exists('token_get_all')) {
|
||||
$majorProblems[] = 'Install and enable the <strong>Tokenizer</strong> extension.';
|
||||
}
|
||||
|
||||
// php.ini
|
||||
if (!ini_get('date.timezone')) {
|
||||
$phpini = true;
|
||||
$majorProblems[] = 'Set the "<strong>date.timezone</strong>" setting in php.ini<a href="#phpini">*</a> (like Europe/Paris).';
|
||||
}
|
||||
|
||||
if (ini_get('short_open_tag')) {
|
||||
$phpini = true;
|
||||
$minorProblems[] = 'Set <strong>short_open_tag</strong> to <strong>off</strong> in php.ini<a href="#phpini">*</a>.';
|
||||
}
|
||||
|
||||
if (ini_get('magic_quotes_gpc')) {
|
||||
$phpini = true;
|
||||
$minorProblems[] = 'Set <strong>magic_quotes_gpc</strong> to <strong>off</strong> in php.ini<a href="#phpini">*</a>.';
|
||||
}
|
||||
|
||||
if (ini_get('register_globals')) {
|
||||
$phpini = true;
|
||||
$minorProblems[] = 'Set <strong>register_globals</strong> to <strong>off</strong> in php.ini<a href="#phpini">*</a>.';
|
||||
}
|
||||
|
||||
if (ini_get('session.auto_start')) {
|
||||
$phpini = true;
|
||||
$minorProblems[] = 'Set <strong>session.auto_start</strong> to <strong>off</strong> in php.ini<a href="#phpini">*</a>.';
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link href="bundles/sensiodistribution/webconfigurator/css/install.css" rel="stylesheet" media="all" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<title>Symfony Configuration</title>
|
||||
<link rel="stylesheet" href="bundles/framework/css/structure.css" media="all" />
|
||||
<link rel="stylesheet" href="bundles/framework/css/body.css" media="all" />
|
||||
<link rel="stylesheet" href="bundles/sensiodistribution/webconfigurator/css/install.css" media="all" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="symfony-wrapper">
|
||||
<div id="symfony-content">
|
||||
<div class="symfony-blocks-install">
|
||||
<div class="symfony-block-logo">
|
||||
<img src="bundles/sensiodistribution/webconfigurator/images/logo-big.gif" alt="sf_symfony" />
|
||||
<div id="content">
|
||||
<div class="header clear-fix">
|
||||
<div class="header-logo">
|
||||
<img src="bundles/framework/images/logo_symfony.png" alt="Symfony" />
|
||||
</div>
|
||||
|
||||
<div class="search">
|
||||
<form method="get" action="http://symfony.com/search">
|
||||
<div class="form-row">
|
||||
|
||||
<label for="search-id">
|
||||
<img src="bundles/framework/images/grey_magnifier.png" alt="Search on Symfony website" />
|
||||
</label>
|
||||
|
||||
<input name="q" id="search-id" type="search" placeholder="Search on Symfony website" />
|
||||
|
||||
<button type="submit" class="sf-button">
|
||||
<span class="border-l">
|
||||
<span class="border-r">
|
||||
<span class="btn-bg">OK</span>
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sf-reset">
|
||||
<div class="block">
|
||||
<div class="symfony-block-content">
|
||||
<h1>Welcome!</h1>
|
||||
<h1 class="title">Welcome!</h1>
|
||||
<p>Welcome to your new Symfony project.</p>
|
||||
<p>This script will guide you through the basic configuration of your project. You can also do the same by editing the ‘<strong>app/config/parameters.ini</strong>’ file directly.</p>
|
||||
<p>
|
||||
This script will guide you through the basic configuration of your project.
|
||||
You can also do the same by editing the ‘<strong>app/config/parameters.yml</strong>’ file directly.
|
||||
</p>
|
||||
|
||||
<?php if (count($majorProblems)): ?>
|
||||
<h2>
|
||||
<span><?php echo count($majorProblems) ?> Major problems</span>
|
||||
</h2>
|
||||
<h2 class="ko">Major problems</h2>
|
||||
<p>Major problems have been detected and <strong>must</strong> be fixed before continuing:</p>
|
||||
<ol>
|
||||
<?php foreach ($majorProblems as $problem): ?>
|
||||
<li><?php echo $problem; ?></li>
|
||||
<?php endforeach ?>
|
||||
<li><?php echo $problem->getHelpHtml() ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
<?php endif ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($minorProblems)): ?>
|
||||
<h2>Recommendations</h2>
|
||||
<p>
|
||||
<?php if ($majorProblems): ?>
|
||||
Additionally, to
|
||||
<?php else: ?>
|
||||
To<?php endif; ?>
|
||||
enhance your Symfony experience, it’s recommended that you fix the following :
|
||||
<?php if (count($majorProblems)): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience,
|
||||
it’s recommended that you fix the following:
|
||||
</p>
|
||||
<ol>
|
||||
<?php foreach ($minorProblems as $problem): ?>
|
||||
<li><?php echo $problem; ?></li>
|
||||
<li><?php echo $problem->getHelpHtml() ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
<?php endif ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($phpini): ?>
|
||||
<a id="phpini"></a>
|
||||
<p>*
|
||||
<?php if (get_cfg_var('cfg_file_path')): ?>
|
||||
Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo get_cfg_var('cfg_file_path') ?></strong>".
|
||||
<?php if ($symfonyRequirements->hasPhpIniConfigIssue()): ?>
|
||||
<p id="phpini">*
|
||||
<?php if ($symfonyRequirements->getPhpIniConfigPath()): ?>
|
||||
Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniConfigPath() ?></strong>".
|
||||
<?php else: ?>
|
||||
To change settings, create a "<strong>php.ini</strong>".
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!count($majorProblems) && !count($minorProblems)): ?>
|
||||
<p class="ok">Your configuration looks good to run Symfony.</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="symfony-install-continue">
|
||||
<?php if (!count($majorProblems)): ?>
|
||||
<li><a href="app_dev.php/_configurator/">Configure your Symfony Application online</a></li>
|
||||
<li><a href="app_dev.php/">Bypass configuration and go to the Welcome page</a></li>
|
||||
<?php endif ?>
|
||||
<?php endif; ?>
|
||||
<?php if (count($majorProblems) || count($minorProblems)): ?>
|
||||
<li><a href="config.php">Re-check configuration</a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="version">Symfony Standard Edition</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
6
web/dev-ips.php
Normal file
6
web/dev-ips.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$dev_ips = array(
|
||||
'127.0.0.1',
|
||||
'::1',
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user