Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/routing/Loader/PhpFileLoader.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
46 | 46 |
47 $result = $load($path); | 47 $result = $load($path); |
48 | 48 |
49 if ($result instanceof \Closure) { | 49 if ($result instanceof \Closure) { |
50 $collection = new RouteCollection(); | 50 $collection = new RouteCollection(); |
51 $result(new RoutingConfigurator($collection, $this, $path, $file), $this); | 51 $result(new RoutingConfigurator($collection, $this, $path, $file)); |
52 } else { | 52 } else { |
53 $collection = $result; | 53 $collection = $result; |
54 } | 54 } |
55 | 55 |
56 $collection->addResource(new FileResource($path)); | 56 $collection->addResource(new FileResource($path)); |