Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Merge branch '2.8' of github.com:symfony/symfony-standard into featur…
Browse files Browse the repository at this point in the history
…e/symfony2.8
  • Loading branch information
danrot committed Dec 17, 2015
2 parents 4c16fd2 + bc3c21e commit 919d60c
Show file tree
Hide file tree
Showing 21 changed files with 1,268 additions and 1,669 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/app/config/parameters.yml
/app/config/phpcr.yml
/app/logs/*
!app/cache/.gitkeep
!app/logs/.gitkeep
/app/phpunit.xml
/bin/
/build/
/composer.phar
Expand Down
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ disabled:

finder:
not-path:
- app/autoload.php
- app/SymfonyRequirements.php
- app/check.php
8 changes: 7 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Upgrade

## 0.1.2
## dev-develop

### Symfony 2.8 Upgrade

Sulu has upgrade to Symfony 2.8. See the [Symfony Upgrade Guide](https://github.com/symfony/symfony-standard/blob/2.8/UPGRADE-2.8.md) for more information.

## 1.1.2

### Reindex-Command & Date Content-Type

Expand Down
9 changes: 8 additions & 1 deletion app/.htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
deny from all
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>

8 changes: 4 additions & 4 deletions app/autoload.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

use Composer\Autoload\ClassLoader;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Composer\Autoload\ClassLoader;

/**
* @var ClassLoader
* @var ClassLoader $loader
*/
$loader = require __DIR__ . '/../vendor/autoload.php';
$loader = require __DIR__.'/../vendor/autoload.php';

AnnotationRegistry::registerLoader([$loader, 'loadClass']);
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

return $loader;
Empty file added app/cache/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions app/check.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function get_error_message(Requirement $requirement, $lineSize)
return;
}

$errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL;
$errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL;
$errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL;

return $errorMessage;
Expand Down Expand Up @@ -121,8 +121,8 @@ function echo_block($style, $title, $message)
echo PHP_EOL.PHP_EOL;

echo_style($style, str_repeat(' ', $width).PHP_EOL);
echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL);
echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL);
echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL);
echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL);
echo_style($style, str_repeat(' ', $width).PHP_EOL);
}

Expand Down
6 changes: 3 additions & 3 deletions app/config/admin/routing_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ _profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /admin/_profiler

_configurator:
resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml"
prefix: /admin/_configurator
_errors:
resource: "@TwigBundle/Resources/config/routing/errors.xml"
prefix: /admin/_error

_main:
resource: routing.yml
9 changes: 9 additions & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ imports:
- { resource: services.yml }
- { resource: sulu.yml }

# Put parameters here that don't need to change on each machine where the app is deployed
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: en

framework:
#esi: ~
#translator: { fallbacks: ["%locale%"] }
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: ~
form: ~
csrf_protection: ~
validation: { enable_annotations: true }
#serializer: { enable_annotations: true }
templating:
engines: ['twig']
#assets_version: SomeVersionScheme
Expand Down Expand Up @@ -61,6 +68,7 @@ doctrine:

orm:
auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true

# Swiftmailer Configuration
Expand All @@ -76,3 +84,4 @@ liip_theme:
themes: ["default"]
active_theme: "default"
load_controllers: false

25 changes: 14 additions & 11 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: ~
database_name: sulu
database_user: root
database_password: ~
database_host: 127.0.0.1
database_port: ~
database_name: sulu
database_user: root
database_password: ~
# You should uncomment this if you want use pdo_sqlite
# database_path: "%kernel.root_dir%/data.db3"

mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: ~
mailer_password: ~
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: ~
mailer_password: ~

# A secret key that's used to generate certain security-related tokens
secret: ThisTokenIsNotSoSecretChangeIt

locale: en
secret: ThisTokenIsNotSoSecretChangeIt
sulu_admin.name: Sulu
sulu_admin.email: ~

Expand Down
6 changes: 3 additions & 3 deletions app/config/website/routing_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ _profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler

_configurator:
resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml"
prefix: /_configurator
_errors:
resource: "@TwigBundle/Resources/config/routing/errors.xml"
prefix: /admin/_error

_main:
resource: routing.yml
Expand Down
13 changes: 8 additions & 5 deletions app/console
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#!/usr/bin/env php
<?php

use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
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);

set_time_limit(0);

require_once __DIR__.'/bootstrap.php.cache';
/**
* @var Composer\Autoload\ClassLoader $loader
*/
$loader = require __DIR__.'/autoload.php';
require_once __DIR__.'/AdminKernel.php';

use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
Expand Down
Empty file added app/logs/.gitkeep
Empty file.
8 changes: 7 additions & 1 deletion app/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="bootstrap.php.cache"
bootstrap="autoload.php"
>
<php>
<ini name="error_reporting" value="-1" />
</php>

<testsuites>
<testsuite name="Project Test Suite">
<directory>../src/*/*Bundle/Tests</directory>
Expand All @@ -25,6 +29,8 @@
<whitelist>
<directory>../src</directory>
<exclude>
<directory>../src/*Bundle/Resources</directory>
<directory>../src/*Bundle/Tests</directory>
<directory>../src/*/*Bundle/Resources</directory>
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Resources</directory>
Expand Down
13 changes: 8 additions & 5 deletions app/webconsole
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#!/usr/bin/env php
<?php

use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
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);

set_time_limit(0);

require_once __DIR__.'/bootstrap.php.cache';
/**
* @var Composer\Autoload\ClassLoader $loader
*/
$loader = require __DIR__.'/autoload.php';
require_once __DIR__.'/WebsiteKernel.php';

use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
Expand Down
23 changes: 15 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@
"version": "dev-develop",
"autoload": {
"psr-0": {
"": "src/"
"": "src/",
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/cbastienbaron/sulu.git"
}
],
"require": {
"php": ">=5.5",
"symfony/symfony": "2.6.*",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0",
"sensio/framework-extra-bundle": "~3.0",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"sulu/sulu": "dev-develop",
"sulu/sulu": "dev-enhancement/upgrade-symfony",
"symfony-cmf/core-bundle": "1.2.*",
"dantleech/phpcr-migrations-bundle": "0.1.*",

Expand All @@ -40,8 +45,8 @@
"evenement/evenement": "2.0.0 as 1.0.0"
},
"require-dev": {
"sensio/generator-bundle": "~2.3",
"sauce/sausage": "0.9.*",
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7",
"phpcr/phpcr-shell": "@beta",
"behat/behat": "~3.0.0",
"behat/mink-extension": "~2.0@dev",
Expand All @@ -55,6 +60,7 @@
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget",
"Sulu\\Bundle\\MediaBundle\\Composer\\MediaScriptHandler::initBundle"
],
"post-update-cmd": [
Expand All @@ -63,6 +69,7 @@
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget",
"Sulu\\Bundle\\MediaBundle\\Composer\\MediaScriptHandler::initBundle"
]
},
Expand Down
Loading

0 comments on commit 919d60c

Please sign in to comment.