Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / diff / src / Routing / RouteSubscriber.php
1 <?php
2
3 namespace Drupal\diff\Routing;
4
5 use Drupal\Core\Routing\RouteSubscriberBase;
6 use Symfony\Component\Routing\RouteCollection;
7
8 /**
9  * Listens to the dynamic route events.
10  */
11 class RouteSubscriber extends RouteSubscriberBase {
12
13   /**
14    * {@inheritdoc}
15    */
16   public function alterRoutes(RouteCollection $collection) {
17     // Replace the content from node.revision_overview route with content
18     // generated by revisionOverview method from NodeRevisionController class.
19     $route = $collection->get('entity.node.version_history');
20     if ($route) {
21       $route->addDefaults(
22         array(
23           '_controller' => '\Drupal\diff\Controller\NodeRevisionController::revisionOverview',
24         )
25       );
26     }
27   }
28
29 }