Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Don't use Flex config in 3.4 branch#11385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wouterj merged 1 commit intosymfony:3.4fromjaviereguiluz:no_flex_config
Apr 10, 2019
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletionscache.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -50,15 +50,15 @@ adapter (template) they use by using the ``app`` and ``system`` key like:

.. code-block:: yaml

# config/packages/cache.yaml
#app/config/config.yml
framework:
cache:
app: cache.adapter.filesystem
system: cache.adapter.system

.. code-block:: xml

<!-- config/packages/cache.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -75,7 +75,7 @@ adapter (template) they use by using the ``app`` and ``system`` key like:

.. code-block:: php

// config/packages/cache.php
//app/config/config.php
$container->loadFromExtension('framework', [
'cache' => [
'app' => 'cache.adapter.filesystem',
Expand DownExpand Up@@ -109,7 +109,7 @@ will create pool with service id of ``cache.[type]``

.. code-block:: yaml

# config/packages/cache.yaml
#app/config/config.yml
framework:
cache:
directory: '%kernel.cache_dir%/pools' # Only used with cache.adapter.filesystem
Expand All@@ -127,7 +127,7 @@ will create pool with service id of ``cache.[type]``

.. code-block:: xml

<!-- config/packages/cache.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand DownExpand Up@@ -155,7 +155,7 @@ will create pool with service id of ``cache.[type]``

.. code-block:: php

// config/packages/cache.php
//app/config/config.php
$container->loadFromExtension('framework', [
'cache' => [
// Only used with cache.adapter.filesystem
Expand DownExpand Up@@ -183,7 +183,7 @@ You can also create more customized pools. All you need is an adapter:

.. code-block:: yaml

# config/packages/cache.yaml
#app/config/config.yml
framework:
cache:
default_memcached_provider: 'memcached://localhost'
Expand All@@ -198,7 +198,7 @@ You can also create more customized pools. All you need is an adapter:

.. code-block:: xml

<!-- config/packages/cache.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -217,7 +217,7 @@ You can also create more customized pools. All you need is an adapter:

.. code-block:: php

// config/packages/cache.php
//app/config/config.php
$container->loadFromExtension('framework', [
'cache' => [
'default_memcached_provider' => 'memcached://localhost',
Expand DownExpand Up@@ -249,7 +249,7 @@ For advanced configurations it could sometimes be useful to use a pool as an ada

.. code-block:: yaml

# config/packages/cache.yaml
#app/config/config.yml
framework:
cache:
app: my_configured_app_cache
Expand All@@ -270,7 +270,7 @@ For advanced configurations it could sometimes be useful to use a pool as an ada

.. code-block:: xml

<!-- config/packages/cache.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -291,7 +291,7 @@ For advanced configurations it could sometimes be useful to use a pool as an ada

.. code-block:: php

// config/packages/cache.php
//app/config/config.php
$container->loadFromExtension('framework', [
'cache' => [
'app' => 'my_configured_app_cache',
Expand DownExpand Up@@ -330,7 +330,7 @@ and use that when configuring the pool.

.. code-block:: yaml

# config/packages/cache.yaml
#app/config/config.yml
framework:
cache:
pools:
Expand All@@ -348,7 +348,7 @@ and use that when configuring the pool.

.. code-block:: xml

<!-- config/packages/cache.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -375,7 +375,7 @@ and use that when configuring the pool.

.. code-block:: php

// config/packages/cache.php
//app/config/config.php
$container->loadFromExtension('framework', [
'cache' => [
'pools' => [
Expand DownExpand Up@@ -407,7 +407,7 @@ case the value needs to be recalculated.

.. code-block:: yaml

# config/packages/cache.yaml
#app/config/config.yml
framework:
cache:
pools:
Expand All@@ -426,7 +426,7 @@ case the value needs to be recalculated.

.. code-block:: xml

<!-- config/packages/cache.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand DownExpand Up@@ -455,7 +455,7 @@ case the value needs to be recalculated.

.. code-block:: php

// config/packages/cache.php
//app/config/config.php
$container->loadFromExtension('framework', [
'cache' => [
'pools' => [
Expand Down
42 changes: 21 additions & 21 deletionsconfiguration/external_parameters.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -157,14 +157,14 @@ turn the value of the ``HTTP_PORT`` env var into an integer:

.. code-block:: yaml

# config/packages/framework.yaml
#app/config/config.yml
framework:
router:
http_port: env(int:HTTP_PORT)

.. code-block:: xml

<!-- config/packages/framework.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -181,7 +181,7 @@ turn the value of the ``HTTP_PORT`` env var into an integer:

.. code-block:: php

// config/packages/framework.php
//app/config/config.php
$container->loadFromExtension('framework', [
'router' => [
'http_port' => '%env(int:HTTP_PORT)%',
Expand All@@ -197,15 +197,15 @@ Symfony provides the following env var processors:

.. code-block:: yaml

# config/packages/framework.yaml
#app/config/config.yml
parameters:
env(SECRET): 'some_secret'
framework:
secret: '%env(string:SECRET)%'

.. code-block:: xml

<!-- config/packages/framework.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -224,7 +224,7 @@ Symfony provides the following env var processors:

.. code-block:: php

// config/packages/framework.php
//app/config/config.php
$container->setParameter('env(SECRET)', 'some_secret');
$container->loadFromExtension('framework', [
'secret' => '%env(string:SECRET)%',
Expand All@@ -237,15 +237,15 @@ Symfony provides the following env var processors:

.. code-block:: yaml

# config/packages/framework.yaml
#app/config/config.yml
parameters:
env(HTTP_METHOD_OVERRIDE): 'true'
framework:
http_method_override: '%env(bool:HTTP_METHOD_OVERRIDE)%'

.. code-block:: xml

<!-- config/packages/framework.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -264,7 +264,7 @@ Symfony provides the following env var processors:

.. code-block:: php

// config/packages/framework.php
//app/config/config.php
$container->setParameter('env(HTTP_METHOD_OVERRIDE)', 'true');
$container->loadFromExtension('framework', [
'http_method_override' => '%env(bool:HTTP_METHOD_OVERRIDE)%',
Expand All@@ -283,7 +283,7 @@ Symfony provides the following env var processors:

.. code-block:: yaml

# config/packages/security.yaml
#app/config/config.yml
parameters:
env(HEALTH_CHECK_METHOD): 'Symfony\Component\HttpFoundation\Request::METHOD_HEAD'
security:
Expand All@@ -292,7 +292,7 @@ Symfony provides the following env var processors:

.. code-block:: xml

<!-- config/packages/security.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -311,7 +311,7 @@ Symfony provides the following env var processors:

.. code-block:: php

// config/packages/security.php
//app/config/config.php
$container->setParameter('env(HEALTH_CHECK_METHOD)', 'Symfony\Component\HttpFoundation\Request::METHOD_HEAD');
$container->loadFromExtension('security', [
'access_control' => [
Expand All@@ -333,15 +333,15 @@ Symfony provides the following env var processors:

.. code-block:: yaml

# config/packages/framework.yaml
#app/config/config.yml
parameters:
env(TRUSTED_HOSTS): '["10.0.0.1", "10.0.0.2"]'
framework:
trusted_hosts: '%env(json:TRUSTED_HOSTS)%'

.. code-block:: xml

<!-- config/packages/framework.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -360,7 +360,7 @@ Symfony provides the following env var processors:

.. code-block:: php

// config/packages/framework.php
//app/config/config.php
$container->setParameter('env(TRUSTED_HOSTS)', '["10.0.0.1", "10.0.0.2"]');
$container->loadFromExtension('framework', [
'trusted_hosts' => '%env(json:TRUSTED_HOSTS)%',
Expand All@@ -374,7 +374,7 @@ Symfony provides the following env var processors:

.. code-block:: yaml

# config/packages/sentry.yaml
#app/config/config.yml
parameters:
env(HOST): '10.0.0.1'
sentry_host: '%env(HOST)%'
Expand All@@ -384,7 +384,7 @@ Symfony provides the following env var processors:

.. code-block:: xml

<!-- config/packages/sentry.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -402,7 +402,7 @@ Symfony provides the following env var processors:

.. code-block:: php

// config/packages/sentry.php
//app/config/config.php
$container->setParameter('env(HOST)', '10.0.0.1');
$container->setParameter('sentry_host', '%env(HOST)%');
$container->setParameter('env(SENTRY_DSN)', 'http://%sentry_host%/project');
Expand All@@ -417,15 +417,15 @@ Symfony provides the following env var processors:

.. code-block:: yaml

# config/packages/framework.yaml
#app/config/config.yml
parameters:
env(AUTH_FILE): '../config/auth.json'
google:
auth: '%env(file:AUTH_FILE)%'

.. code-block:: xml

<!-- config/packages/framework.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -444,7 +444,7 @@ Symfony provides the following env var processors:

.. code-block:: php

// config/packages/framework.php
//app/config/config.php
$container->setParameter('env(AUTH_FILE)', '../config/auth.json');
$container->loadFromExtension('google', [
'auth' => '%env(file:AUTH_FILE)%',
Expand Down
6 changes: 3 additions & 3 deletionsform/bootstrap4.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,13 +30,13 @@ configuration:

.. code-block:: yaml

# config/packages/twig.yaml
#app/config/config.yml
twig:
form_themes: ['bootstrap_4_layout.html.twig']

.. code-block:: xml

<!-- config/packages/twig.xml -->
<!--app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All@@ -54,7 +54,7 @@ configuration:

.. code-block:: php

// config/packages/twig.php
//app/config/config.php
$container->loadFromExtension('twig', [
'form_themes' => [
'bootstrap_4_layout.html.twig',
Expand Down
2 changes: 1 addition & 1 deletionfrontend/encore/advanced-config.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -104,7 +104,7 @@ Next, define the output directories of each build:

.. code-block:: yaml

# config/packages/webpack_encore.yaml
#app/config/config.yml
webpack_encore:
output_path: '%kernel.public_dir%/web/default_build'
builds:
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp