Skip to content

Reverted array folding standard #2243

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

Merged
merged 1 commit into from
Feb 19, 2013
Merged
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
2 changes: 1 addition & 1 deletion book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ setting:
$container->loadFromExtension('security', array(
'firewalls' => array(
'main'=> array(
...,
// ...
'switch_user' => array('role' => 'ROLE_ADMIN', 'parameter' => '_want_to_be_this_user'),
),
),
Expand Down
3 changes: 2 additions & 1 deletion book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ invokes the service container extension inside the ``FrameworkBundle``:
'form' => array(),
'csrf-protection' => array(),
'router' => array('resource' => '%kernel.root_dir%/config/routing.php'),
...,

// ...
));

When the configuration is parsed, the container looks for an extension that
Expand Down
3 changes: 2 additions & 1 deletion book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,8 @@ configuration file:

// app/config/config.php
$container->loadFromExtension('framework', array(
...,
// ...

'templating' => array(
'engines' => array('twig'),
),
Expand Down
3 changes: 2 additions & 1 deletion components/security/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ receives an array of encoders::
$encoders = array(
'Symfony\\Component\\Security\\Core\\User\\User' => $defaultEncoder,
'Acme\\Entity\\LegacyUser' => $weakEncoder,
...,

// ...
);

$encoderFactory = new EncoderFactory($encoders);
Expand Down
13 changes: 3 additions & 10 deletions contributing/documentation/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,10 @@ An example::
}
}

.. note::

* In Yaml you should put a space after ``{`` and before ``}`` (e.g. ``{ _controller: ... }``),
but this should not be done in Twig (e.g. ``{'hello' : 'value'}``).
* An array item is a part of a line, not a complete line. So you should
not use ``// ...`` but ``...,`` (the comma because of the Coding Standards)::
.. caution::

array(
'some value',
...,
)
In Yaml you should put a space after ``{`` and before ``}`` (e.g. ``{ _controller: ... }``),
but this should not be done in Twig (e.g. ``{'hello' : 'value'}``).

Reporting an Issue
------------------
Expand Down
8 changes: 5 additions & 3 deletions cookbook/configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ activated by modifying the default value in the ``dev`` configuration file:

$container->loadFromExtension('web_profiler', array(
'toolbar' => true,
...,

// ...
));

.. index::
Expand Down Expand Up @@ -205,9 +206,10 @@ environment by using this code and changing the environment string.
$container->loadFromExtension('doctrine', array(
'dbal' => array(
'logging' => '%kernel.debug%',
...,

// ...
),
...
// ...
));

.. index::
Expand Down
3 changes: 2 additions & 1 deletion cookbook/configuration/pdo_session_storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ configuration format of your choice):
$container->loadFromExtension('framework', array(
// ...
'session' => array(
...,
// ...

'storage_id' => 'session.storage.pdo',
),
));
Expand Down
6 changes: 4 additions & 2 deletions cookbook/doctrine/custom_dql_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ In Symfony, you can register your custom DQL functions as follows:
// app/config/config.php
$container->loadFromExtension('doctrine', array(
'orm' => array(
...,
// ...

'entity_managers' => array(
'default' => array(
...,
// ...

'dql' => array(
'string_functions' => array(
'test_string' => 'Acme\HelloBundle\DQL\StringFunction',
Expand Down
3 changes: 2 additions & 1 deletion cookbook/email/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ the power of the `Swiftmailer`_ library.
public function registerBundles()
{
$bundles = array(
...,
// ...

new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
);

Expand Down
3 changes: 2 additions & 1 deletion cookbook/email/spool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ In order to use the spool, use the following configuration:

// app/config/config.php
$container->loadFromExtension('swiftmailer', array(
...,
// ...

'spool' => array(
'type' => 'file',
'path' => '/path/to/spool',
Expand Down
12 changes: 8 additions & 4 deletions cookbook/form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ form is rendered.
'form' => array('resources' => array(
'AcmeDemoBundle:Form:fields.html.twig',
)),
...,

// ...
));

By default, Twig uses a *div* layout when rendering forms. Some people, however,
Expand Down Expand Up @@ -470,7 +471,8 @@ resource to use such a layout:
'form' => array('resources' => array(
'form_table_layout.html.twig',
)),
...,

// ...
));

If you only want to make the change in one template, add the following line to
Expand Down Expand Up @@ -525,7 +527,8 @@ form is rendered.
array('resources' => array(
'AcmeDemoBundle:Form',
))),
...,

// ...
));

By default, the PHP engine uses a *div* layout when rendering forms. Some people,
Expand Down Expand Up @@ -563,7 +566,8 @@ resource to use such a layout:
array('resources' => array(
'FrameworkBundle:FormTable',
))),
...,

// ...
));

If you only want to make the change in one template, add the following line to
Expand Down
12 changes: 8 additions & 4 deletions cookbook/security/form_login.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ the following config:
$container->loadFromExtension('security', array(
'firewalls' => array(
'main' => array('form_login' => array(
...,
// ...

'default_target_path' => '/admin',
)),
),
Expand Down Expand Up @@ -111,7 +112,8 @@ of what URL they had requested previously by setting the
$container->loadFromExtension('security', array(
'firewalls' => array(
'main' => array('form_login' => array(
...,
// ...

'always_use_default_target_path' => true,
)),
),
Expand Down Expand Up @@ -153,7 +155,8 @@ this by setting ``use_referer`` to true (it defaults to false):
$container->loadFromExtension('security', array(
'firewalls' => array(
'main' => array('form_login' => array(
...,
// ...

'use_referer' => true,
)),
),
Expand Down Expand Up @@ -282,7 +285,8 @@ following config:
$container->loadFromExtension('security', array(
'firewalls' => array(
'main' => array('form_login' => array(
...,
// ...

'failure_path' => login_failure,
)),
),
Expand Down
3 changes: 2 additions & 1 deletion cookbook/security/securing_services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ documentation.

// app/config/config.php
$container->loadFromExtension('jms_security_extra', array(
...,
// ...

'secure_all_services' => true,
));

Expand Down
3 changes: 2 additions & 1 deletion cookbook/symfony1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ namespace in the ``vendor/bundle`` directory:

// ...
$loader->registerNamespaces(array(
...,
// ...

'Sensio' => __DIR__.'/../vendor/bundles',
));

Expand Down
3 changes: 2 additions & 1 deletion cookbook/templating/PHP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ your application configuration file:
.. code-block:: php

$container->loadFromExtension('framework', array(
...,
// ...

'templating' => array(
'engines' => array('twig', 'php'),
),
Expand Down