Skip to content

Commit

Permalink
Merge branch '2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jun 13, 2014
2 parents 29664fb + b879ad7 commit eb268c5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ authorization from inside a controller::
The ``createAccessDeniedException`` method was introduced in Symfony 2.5.

The :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::createAccessDeniedException`
method creates a special :class:`Symfony\\Component\\Security\\Core\Exception\\AccessDeniedException`
method creates a special :class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`
object, which ultimately triggers a 403 HTTP response inside Symfony.

Thanks to the SensioFrameworkExtraBundle, you can also secure your controller using annotations::
Expand Down
2 changes: 1 addition & 1 deletion components/class_loader/psr4_class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ first need to configure the ``Psr4ClassLoader``:
First of all, the class loader is loaded manually using a ``require``
statement, since there is no autoload mechanism yet. With the
:method:`Symfony\Component\ClassLoader\Psr4ClassLoader::addPrefix` call, you
:method:`Symfony\\Component\\ClassLoader\\Psr4ClassLoader::addPrefix` call, you
tell the class loader where to look for classes with the
``Symfony\Component\Yaml\`` namespace prefix. After registering the autoloader,
the Yaml component is ready to be used.
Expand Down
10 changes: 5 additions & 5 deletions contributing/documentation/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ Attribution-Share Alike 3.0 Unported `License`_.
* *Other Rights* — In no way are any of the following rights affected by the
license:

* Your fair dealing or fair use rights, or other applicable copyright
exceptions and limitations;
* Your fair dealing or fair use rights, or other applicable copyright exceptions
and limitations;

* The author's moral rights;
* The author's moral rights;

* Rights other persons may have either in the work itself or in how
the work is used, such as publicity or privacy rights.
* Rights other persons may have either in the work itself or in how the
work is used, such as publicity or privacy rights.

* *Notice* — For any reuse or distribution, you must make clear to others
the license terms of this work. The best way to do this is with a link
Expand Down
8 changes: 8 additions & 0 deletions cookbook/cache/varnish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ Symfony2 adds automatically:
// For Varnish < 3.0
// esi;
}
/* By default Varnish ignores Cache-Control: nocache
(https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html#cache-control),
so in order avoid caching it has to be done explicitly */
if (beresp.http.Pragma ~ "no-cache" ||
beresp.http.Cache-Control ~ "no-cache" ||
beresp.http.Cache-Control ~ "private") {
return (hit_for_pass);
}
}
.. caution::
Expand Down

0 comments on commit eb268c5

Please sign in to comment.