Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #64 from symfony-cmf/sync
Browse files Browse the repository at this point in the history
Sync
  • Loading branch information
wouterj authored Dec 23, 2016
2 parents c7774a5 + d63d1b5 commit 1d6b05b
Show file tree
Hide file tree
Showing 15 changed files with 382 additions and 132 deletions.
2 changes: 1 addition & 1 deletion app/Resources/views/default/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<svg id="icon-status" width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z" fill="#759E1A"/></svg>

Your application is now ready. You can start working on it at:
<code>{{ base_dir }}/</code>
<code>{{ base_dir }}</code>
</p>
</div>

Expand Down
4 changes: 1 addition & 3 deletions app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
use Doctrine\Common\Annotations\AnnotationRegistry;
use Composer\Autoload\ClassLoader;

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

AnnotationRegistry::registerLoader([$loader, 'loadClass']);
Expand Down
2 changes: 2 additions & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ framework:
fragments: ~
http_method_override: true
assets: ~
php_errors:
log: true

# Twig Configuration
twig:
Expand Down
6 changes: 3 additions & 3 deletions app/config/security.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# To get started with security, check out the documentation:
# http://symfony.com/doc/current/book/security.html
# http://symfony.com/doc/current/security.html
security:

# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
# http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
providers:
in_memory:
memory:
Expand Down Expand Up @@ -30,7 +30,7 @@ security:
# activate different ways to authenticate

# http_basic: ~
# http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
# http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

# form_login: ~
# http://symfony.com/doc/current/cookbook/security/form_login_setup.html
2 changes: 1 addition & 1 deletion app/config/services.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Learn more about services, parameters and containers at
# http://symfony.com/doc/current/book/service_container.html
# http://symfony.com/doc/current/service_container.html
parameters:
# parameter_name: value

Expand Down
7 changes: 3 additions & 4 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ 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
// read http://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
// for more information
//umask(0000);

set_time_limit(0);

/**
* @var Composer\Autoload\ClassLoader $loader
*/
/** @var Composer\Autoload\ClassLoader $loader */
$loader = require __DIR__.'/../app/autoload.php';

$input = new ArgvInput();
Expand Down
13 changes: 8 additions & 5 deletions bin/symfony_requirements
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ echo '> Checking Symfony requirements:'.PHP_EOL.' ';

$messages = array();
foreach ($symfonyRequirements->getRequirements() as $req) {
/** @var $req Requirement */
if ($helpText = get_error_message($req, $lineSize)) {
echo_style('red', 'E');
$messages['error'][] = $helpText;
Expand Down Expand Up @@ -121,10 +120,14 @@ 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_repeat(' ', $width).PHP_EOL);
echo_style($style, str_repeat(' ', $width));
echo PHP_EOL;
echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT));
echo PHP_EOL;
echo_style($style, $message);
echo PHP_EOL;
echo_style($style, str_repeat(' ', $width));
echo PHP_EOL;
}

function has_color_support()
Expand Down
17 changes: 7 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"require": {
"php": "^5.5.9|^7.0",
"symfony/symfony": "^3.1",
"symfony/symfony": "^3.2",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/data-fixtures": "^1.0",
Expand All @@ -35,7 +35,7 @@
"sensio/framework-extra-bundle": "^3.0.2",
"symfony/assetic-bundle": "^2.3",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.8",
"symfony/monolog-bundle": "^3.0",
"symfony/polyfill-apcu": "^1.0",
"symfony-cmf/symfony-cmf": "2.0.*",
"symfony-cmf/create-bundle": "2.0.*",
Expand All @@ -51,7 +51,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-install-cmd": [
"symfony-scripts": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
Expand All @@ -60,14 +60,11 @@
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
"@symfony-scripts"
]
},
"extra": {
Expand Down
Loading

0 comments on commit 1d6b05b

Please sign in to comment.