Skip to content

Commit 4dee010

Browse files
committed
creating framework bundle 7.4 recipe folder
1 parent d725440 commit 4dee010

File tree

12 files changed

+136
-0
lines changed

12 files changed

+136
-0
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 4
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[{compose.yaml,compose.*.yaml}]
14+
indent_size = 2
15+
16+
[*.md]
17+
trim_trailing_whitespace = false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
framework:
2+
cache:
3+
# Unique name of your app: used to compute stable namespaces for cache keys.
4+
#prefix_seed: your_vendor_name/app_name
5+
6+
# The "app" cache stores to the filesystem by default.
7+
# The data in this cache should persist between deploys.
8+
# Other options include:
9+
10+
# Redis
11+
#app: cache.adapter.redis
12+
#default_redis_provider: redis://localhost
13+
14+
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
15+
#app: cache.adapter.apcu
16+
17+
# Namespaced pools use the above "app" backend by default
18+
#pools:
19+
#my.dedicated.cache: null
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# see https://symfony.com/doc/current/reference/configuration/framework.html
2+
framework:
3+
secret: '%env(APP_SECRET)%'
4+
5+
# Note that the session will be started ONLY if you read or write from it.
6+
session: true
7+
8+
#esi: true
9+
#fragments: true
10+
11+
when@test:
12+
framework:
13+
test: true
14+
session:
15+
storage_factory_id: session.storage.factory.mock_file
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
4+
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
when@dev:
2+
_errors:
3+
resource: '@FrameworkBundle/Resources/config/routing/errors.php'
4+
prefix: /_error
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file is the entry point to configure your own services.
2+
# Files in the packages/ subdirectory configure your dependencies.
3+
4+
# Put parameters here that don't need to change on each machine where the app is deployed
5+
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
6+
parameters:
7+
8+
services:
9+
# default configuration for services in *this* file
10+
_defaults:
11+
autowire: true # Automatically injects dependencies in your services.
12+
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
13+
14+
# makes classes in src/ available to be used as services
15+
# this creates a service per class whose id is the fully-qualified class name
16+
App\:
17+
resource: '../src/'
18+
19+
# add more service definitions when explicit configuration is needed
20+
# please note that last definitions always *replace* previous ones
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"bundles": {
3+
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/",
7+
"public/": "%PUBLIC_DIR%/",
8+
"src/": "%SRC_DIR%/",
9+
".editorconfig": ".editorconfig"
10+
},
11+
"composer-scripts": {
12+
"cache:clear": "symfony-cmd",
13+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
14+
},
15+
"env": {
16+
"APP_ENV": "dev",
17+
"APP_SECRET": ""
18+
},
19+
"dotenv": {
20+
"dev": {
21+
"APP_SECRET": "%generate(secret)%"
22+
}
23+
},
24+
"gitignore": [
25+
"/.env.local",
26+
"/.env.local.php",
27+
"/.env.*.local",
28+
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
29+
"/%PUBLIC_DIR%/bundles/",
30+
"/%VAR_DIR%/",
31+
"/vendor/"
32+
]
33+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* <fg=blue>Run</> your application:
2+
1. Go to the project directory
3+
2. Create your code repository with the <comment>git init</comment> command
4+
3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server
5+
6+
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
use App\Kernel;
4+
5+
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
6+
7+
return function (array $context) {
8+
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
9+
};

symfony/framework-bundle/7.4/src/Controller/.gitignore

Whitespace-only changes.

symfony/framework-bundle/7.4/src/Kernel.php

Whitespace-only changes.

0 commit comments

Comments
 (0)