Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit fdce704

Browse filesBrowse files
committed
Use new 3.3 features
1 parent 001a728 commit fdce704
Copy full SHA for fdce704

File tree

6 files changed

+33
-9
lines changed
Filter options

6 files changed

+33
-9
lines changed

‎app/config/config.yml

Copy file name to clipboardExpand all lines: app/config/config.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
imports:
2-
- { resource: parameters.yml }
3-
- { resource: security.yml }
4-
- { resource: services.yml }
2+
- { resource: 'parameters.yml' }
3+
- { resource: 'security.yml' }
4+
- { resource: 'services/*' }
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

‎app/config/services.yml renamed to ‎app/config/services/app.yml

Copy file name to clipboardExpand all lines: app/config/services/app.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ parameters:
44
# parameter_name: value
55

66
services:
7+
_defaults:
8+
public: false # Making services private improve performances
9+
710
# 'My\ClassName':
811
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]

‎app/config/services/framework.yml

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
services:
2+
_defaults:
3+
# Enable constructor and getter autowiring for all services defined in this file
4+
autowire: ['__construct', 'get*']
5+
6+
_instanceof:
7+
# Add the console.command tag to all services defined in this file having this type
8+
Symfony\Component\Console\Command\Command:
9+
tags: ['console.command']
10+
11+
Twig_ExtensionInterface:
12+
tags: ['twig.extension']
13+
public: false
14+
15+
Symfony\Component\EventDispatcher\EventSubscriberInterface:
16+
tags: ['kernel.event_subscriber']
17+
public: false
18+
19+
# Register all classes in these directories as services
20+
App\:
21+
resource: '../../../src/{Controller,Command,EventSubscriber,Twig}'

‎composer.json

Copy file name to clipboardExpand all lines: composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"autoload": {
13-
"psr-4": { "": "src/" },
13+
"psr-4": { "App\\": "src/" },
1414
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
1515
},
1616
"autoload-dev": {

‎composer.lock

Copy file name to clipboardExpand all lines: composer.lock
+4-4Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/Controller/Hello.php

Copy file name to clipboardExpand all lines: src/Controller/Hello.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Controller;
3+
namespace App\Controller;
44

55
use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait;
66
use Symfony\Component\HttpFoundation\Request;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.