Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/routing/Loader/PhpFileLoader.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
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)); |