Skip to content

Removed the full config dumps from config reference articles #9961

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
121 changes: 8 additions & 113 deletions reference/configuration/assetic.rst
Original file line number Diff line number Diff line change
@@ -1,122 +1,17 @@
.. index::
pair: Assetic; Configuration reference

AsseticBundle Configuration ("assetic")
=======================================
Assetic Configuration Reference (AsseticBundle)
===============================================

.. include:: /assetic/_standard_edition_warning.rst.inc

Full Default Configuration
--------------------------
You can get the full Asstic configuration reference as follows:

.. configuration-block::
.. code-block:: terminal

.. code-block:: yaml
# displays the default config values defined by Symfony
$ php bin/console config:dump-reference assetic

# app/config/config.yml
assetic:
debug: '%kernel.debug%'
use_controller:
enabled: '%kernel.debug%'
profiler: false
read_from: '%assetic.read_from%'
write_to: '%kernel.root_dir%/../web'
java: /usr/bin/java
node: /usr/bin/node
ruby: /usr/bin/ruby
sass: /usr/bin/sass
# An key-value pair of any number of named elements
variables:
some_name: []
bundles:

# Defaults (all currently registered bundles):
- FrameworkBundle
- SecurityBundle
- TwigBundle
- MonologBundle
- SwiftmailerBundle
- DoctrineBundle
- AsseticBundle
- ...
assets:
# An array of named assets (e.g. some_asset, some_other_asset)
some_asset:
inputs: []
filters: []
options:
# A key-value array of options and values
some_option_name: []
filters:

# An array of named filters (e.g. some_filter, some_other_filter)
some_filter: []
workers:
# see https://github.com/symfony/AsseticBundle/pull/119
# Cache can also be busted via the framework.assets.version
# setting - see the "framework" configuration section
cache_busting:
enabled: false
twig:
functions:
# An array of named functions (e.g. some_function, some_other_function)
some_function: []

.. code-block:: xml

<!-- app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:assetic="http://symfony.com/schema/dic/assetic"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/assetic
http://symfony.com/schema/dic/assetic/assetic-1.0.xsd">

<assetic:config
debug="%kernel.debug%"
use-controller="%kernel.debug%"
read-from="%assetic.read_from%"
write-to="%kernel.root_dir%/../web"
java="/usr/bin/java"
node="/usr/bin/node"
sass="/usr/bin/sass">

<!-- Defaults (all currently registered bundles) -->
<assetic:bundle>FrameworkBundle</assetic:bundle>
<assetic:bundle>SecurityBundle</assetic:bundle>
<assetic:bundle>TwigBundle</assetic:bundle>
<assetic:bundle>MonologBundle</assetic:bundle>
<assetic:bundle>SwiftmailerBundle</assetic:bundle>
<assetic:bundle>DoctrineBundle</assetic:bundle>
<assetic:bundle>AsseticBundle</assetic:bundle>
<assetic:bundle>...</assetic:bundle>

<assetic:asset>
<!-- prototype -->
<assetic:name>
<assetic:input />

<assetic:filter />

<assetic:option>
<!-- prototype -->
<assetic:name />
</assetic:option>
</assetic:name>
</assetic:asset>

<assetic:filter>
<!-- prototype -->
<assetic:name />
</assetic:filter>

<assetic:twig>
<assetic:functions>
<!-- prototype -->
<assetic:name />
</assetic:functions>
</assetic:twig>
</assetic:config>
</container>
# displays the actual config values used by your application
$ php bin/console debug:config assetic
27 changes: 17 additions & 10 deletions reference/configuration/debug.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
.. index::
single: Configuration reference; Framework

DebugBundle Configuration ("debug")
===================================
Debug Configuration Reference (DebugBundle)
===========================================

The DebugBundle allows greater integration of the
:doc:`VarDumper component </components/var_dumper>` in the
Symfony full-stack framework and can be configured under the ``debug`` key
in your application configuration. When using XML, you must use the
``http://symfony.com/schema/dic/debug`` namespace.
The DebugBundle integrates the :doc:`VarDumper component </components/var_dumper>`
in Symfony applications. All these options are configured under the ``debug``
key in your application configuration.

.. tip::
.. code-block:: terminal

The XSD schema is available at
``http://symfony.com/schema/dic/debug/debug-1.0.xsd``.
# displays the default config values defined by Symfony
$ php app/console config:dump-reference debug

# displays the actual config values used by your application
$ php app/console debug:config debug

.. note::

When using XML, you must use the ``http://symfony.com/schema/dic/debug``
namespace and the related XSD schema is available at:
``http://symfony.com/schema/dic/debug/debug-1.0.xsd``

Configuration
-------------
Expand Down
Loading