1: <?php
2: /**
3: * This file is part of the Autarky package.
4: *
5: * (c) Andreas Lutro <anlutro@gmail.com>
6: *
7: * For the full copyright and license information, please view the LICENSE
8: * file that was distributed with this source code.
9: */
10:
11: namespace Autarky\Routing\Events;
12:
13: use Autarky\Routing\Route;
14:
15: /**
16: * Event that is fired when an URL is matched with a route.
17: */
18: class RouteMatchedEvent extends AbstractRouteEvent
19: {
20: /**
21: * Set the route, replacing the original one.
22: *
23: * @param Route $route
24: */
25: public function setRoute(Route $route)
26: {
27: $this->route = $route;
28: }
29: }
30: