Skip to content

Instantly share code, notes, and snippets.

@assertchris
Created March 12, 2014 20:26
Show Gist options
  • Select an option

  • Save assertchris/9515594 to your computer and use it in GitHub Desktop.

Select an option

Save assertchris/9515594 to your computer and use it in GitHub Desktop.
<?php
namespace Tricks\Providers;
use Illuminate\Support\ServiceProvider;
use Tricks\Services\Navigation\Builder;
class NavigationServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app['navigation.builder'] = $this->app->share(function ($app) {
return new Builder($app['config'], $app['auth']);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment