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 f13b205

Browse filesBrowse files
committed
Change the default directory structure and register ActionBundle.
Update dependencies
1 parent 77f5880 commit f13b205
Copy full SHA for f13b205

File tree

11 files changed

+167
-76
lines changed
Filter options

11 files changed

+167
-76
lines changed

‎app/AppKernel.php

Copy file name to clipboardExpand all lines: app/AppKernel.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ public function registerBundles()
1313
new Symfony\Bundle\TwigBundle\TwigBundle(),
1414
new Symfony\Bundle\MonologBundle\MonologBundle(),
1515
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
16+
new Symfony\Bundle\WebServerBundle\WebServerBundle(),
1617
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
1718
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
18-
new AppBundle\AppBundle(),
19+
new Dunglas\ActionBundle\DunglasActionBundle(),
1920
];
2021

2122
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {

‎app/config/config.yml

Copy file name to clipboardExpand all lines: app/config/config.yml
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ doctrine:
6060
auto_generate_proxy_classes: "%kernel.debug%"
6161
naming_strategy: doctrine.orm.naming_strategy.underscore
6262
auto_mapping: true
63+
mappings:
64+
App:
65+
type: annotation
66+
is_bundle: false
67+
dir: '%kernel.root_dir%/../src/Entity'
68+
prefix: 'Entity'
69+
alias: App
6370

6471
# Swiftmailer Configuration
6572
swiftmailer:
@@ -68,3 +75,7 @@ swiftmailer:
6875
username: "%mailer_user%"
6976
password: "%mailer_password%"
7077
spool: { type: memory }
78+
79+
dunglas_action:
80+
directories: # List of directories relative to the kernel root directory containing classes to auto-register.
81+
- '../src/{Command,Controller,EventSubscriber,Twig}'

‎app/config/routing.yml

Copy file name to clipboard
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
app:
2-
resource: "@AppBundle/Controller/"
1+
action:
2+
resource: "../../src/Controller/"
33
type: annotation

‎app/config/services.yml

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

66
services:
7-
# service_name:
8-
# class: AppBundle\Directory\ClassName
7+
# 'My\ClassName':
98
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]

‎composer.json

Copy file name to clipboardExpand all lines: composer.json
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"license": "MIT",
44
"type": "project",
55
"description": "The \"Symfony Standard Edition\" distribution",
6+
"repositories": [
7+
{
8+
"type": "vcs",
9+
"url": "https://github.com/dunglas/symfony"
10+
}
11+
],
612
"autoload": {
713
"psr-4": { "": "src/" },
814
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
@@ -12,7 +18,7 @@
1218
},
1319
"require": {
1420
"php": ">=5.5.9",
15-
"symfony/symfony": "3.3.x-dev",
21+
"symfony/symfony": "dev-ng as 3.3.0",
1622
"doctrine/orm": "^2.5",
1723
"doctrine/doctrine-bundle": "^1.6",
1824
"doctrine/doctrine-cache-bundle": "^1.2",
@@ -21,7 +27,8 @@
2127
"symfony/polyfill-apcu": "^1.0",
2228
"sensio/distribution-bundle": "^5.0",
2329
"sensio/framework-extra-bundle": "^3.0.2",
24-
"incenteev/composer-parameter-handler": "^2.0"
30+
"incenteev/composer-parameter-handler": "^2.0",
31+
"dunglas/action-bundle": "^0.4"
2532
},
2633
"require-dev": {
2734
"sensio/generator-bundle": "^3.0",

‎composer.lock

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

‎src/AppBundle/AppBundle.php

Copy file name to clipboardExpand all lines: src/AppBundle/AppBundle.php
-9Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

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