Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit fa7773e

Browse files
committed
New directory structure
1 parent fdce704 commit fa7773e

25 files changed

+146
-115
lines changed

app/AppKernel.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

app/config/routing.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/config/services/app.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/config/services/framework.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

bin/console

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use App\AppKernel;
45
use Symfony\Bundle\FrameworkBundle\Console\Application;
56
use Symfony\Component\Console\Input\ArgvInput;
67
use Symfony\Component\Debug\Debug;
@@ -13,7 +14,7 @@ use Symfony\Component\Debug\Debug;
1314
set_time_limit(0);
1415

1516
/** @var Composer\Autoload\ClassLoader $loader */
16-
$loader = require __DIR__.'/../app/autoload.php';
17+
$loader = require __DIR__.'/../conf/autoload.php';
1718

1819
$input = new ArgvInput();
1920
$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev');

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
}
1111
],
1212
"autoload": {
13-
"psr-4": { "App\\": "src/" },
14-
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
13+
"psr-4": { "App\\": "src/" }
1514
},
1615
"autoload-dev": {
1716
"psr-4": { "Tests\\": "tests/" }
1817
},
1918
"require": {
20-
"php": ">=5.5.9",
19+
"php": ">=7.0.0",
2120
"symfony/symfony": "dev-autowirable_controller as 3.3.0",
2221
"doctrine/orm": "^2.5",
2322
"doctrine/doctrine-bundle": "^1.6",
@@ -52,18 +51,18 @@
5251
},
5352
"config": {
5453
"platform": {
55-
"php": "5.5.9"
54+
"php": "7.0.0"
5655
}
5756
},
5857
"extra": {
59-
"symfony-app-dir": "app",
58+
"symfony-app-dir": "conf",
6059
"symfony-bin-dir": "bin",
6160
"symfony-var-dir": "var",
6261
"symfony-web-dir": "web",
6362
"symfony-tests-dir": "tests",
6463
"symfony-assets-install": "relative",
6564
"incenteev-parameters": {
66-
"file": "app/config/parameters.yml"
65+
"file": "conf/parameters.yml"
6766
},
6867
"branch-alias": {
6968
"dev-master": "3.3-dev"

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

app/config/config.yml renamed to conf/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
imports:
22
- { resource: 'parameters.yml' }
33
- { resource: 'security.yml' }
4-
- { resource: 'services/*' }
4+
- { resource: 'services.yml' }
55

66
# Put parameters here that don't need to change on each machine where the app is deployed
77
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
@@ -13,7 +13,7 @@ framework:
1313
#translator: { fallbacks: ["%locale%"] }
1414
secret: "%secret%"
1515
router:
16-
resource: "%kernel.root_dir%/config/routing.yml"
16+
resource: "%kernel.root_dir%/../conf/routing.yml"
1717
strict_requirements: ~
1818
form: ~
1919
csrf_protection: ~
@@ -38,6 +38,8 @@ framework:
3838
twig:
3939
debug: "%kernel.debug%"
4040
strict_variables: "%kernel.debug%"
41+
paths:
42+
- '%kernel.root_dir%/../templates'
4143

4244
# Doctrine Configuration
4345
doctrine:

0 commit comments

Comments
 (0)