Skip to content

Instantly share code, notes, and snippets.

@assertchris
Created February 14, 2014 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save assertchris/9000726 to your computer and use it in GitHub Desktop.
Save assertchris/9000726 to your computer and use it in GitHub Desktop.
<?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