Created
February 14, 2014 13:12
-
-
Save assertchris/9000726 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Formativ\Theme; | |
use Illuminate\Foundation\Application; | |
use Illuminate\Routing\Router; | |
use Illuminate\Support\ServiceProvider; | |
class ThemeServiceProvider | |
extends ServiceProvider | |
{ | |
protected $defer = false; | |
protected $router; | |
public function __construct(Application $application, Router $router) | |
{ | |
parent::__construct($application); | |
$this->router = $router; | |
} | |
public function register() | |
{ | |
} | |
public function boot() | |
{ | |
$this->router->any("/foo", function() { | |
dd("bar"); | |
}); | |
} | |
public function provides() | |
{ | |
return []; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment