Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Core/Routing/RouteBuilderInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\Core\Routing; |
Chris@0 | 4 |
Chris@0 | 5 /** |
Chris@0 | 6 * Rebuilds the route information and dumps it. |
Chris@0 | 7 * |
Chris@0 | 8 * Rebuilding the route information is the process of gathering all routing data |
Chris@0 | 9 * from .routing.yml files, creating a |
Chris@0 | 10 * \Symfony\Component\Routing\RouteCollection object out of it, and dispatching |
Chris@0 | 11 * that object as a \Drupal\Core\Routing\RouteBuildEvent to all registered |
Chris@0 | 12 * listeners. After that, the \Symfony\Component\Routing\RouteCollection object |
Chris@0 | 13 * is used to dump the data. Examples of a dump include filling up the routing |
Chris@0 | 14 * table, auto-generating Apache mod_rewrite rules, or auto-generating a PHP |
Chris@0 | 15 * matcher class. |
Chris@0 | 16 * |
Chris@0 | 17 * @see \Drupal\Core\Routing\MatcherDumperInterface |
Chris@0 | 18 * @see \Drupal\Core\Routing\RouteProviderInterface |
Chris@0 | 19 * |
Chris@0 | 20 * @ingroup routing |
Chris@0 | 21 */ |
Chris@0 | 22 interface RouteBuilderInterface { |
Chris@0 | 23 |
Chris@0 | 24 /** |
Chris@0 | 25 * Rebuilds the route information and dumps it. |
Chris@0 | 26 * |
Chris@0 | 27 * @return bool |
Chris@0 | 28 * Returns TRUE if the rebuild succeeds, FALSE otherwise. |
Chris@0 | 29 */ |
Chris@0 | 30 public function rebuild(); |
Chris@0 | 31 |
Chris@0 | 32 /** |
Chris@0 | 33 * Rebuilds the route information if necessary, and dumps it. |
Chris@0 | 34 * |
Chris@0 | 35 * @return bool |
Chris@0 | 36 * Returns TRUE if the rebuild occurs, FALSE otherwise. |
Chris@0 | 37 */ |
Chris@0 | 38 public function rebuildIfNeeded(); |
Chris@0 | 39 |
Chris@0 | 40 /** |
Chris@0 | 41 * Sets the router to be rebuilt next time rebuildIfNeeded() is called. |
Chris@0 | 42 */ |
Chris@0 | 43 public function setRebuildNeeded(); |
Chris@0 | 44 |
Chris@0 | 45 } |