1: <?php namespace Khill\Fontawesome;
2:
3: use Illuminate\Support\ServiceProvider;
4: use Illuminate\Foundation\AliasLoader;
5:
6: class FontAwesomeServiceProvider extends ServiceProvider
7: {
8: protected $defer = false;
9:
10: public function boot()
11: {
12: $this->package('khill/fontawesome');
13:
14: include __DIR__.'/../../routes.php';
15: }
16:
17: public function register()
18: {
19: $this->app['fontawesome'] = $this->app->share(function($app)
20: {
21: return new FontAwesome();
22: });
23:
24: $this->app->booting(function()
25: {
26: $loader = AliasLoader::getInstance();
27: $loader->alias('FA', 'Khill\Fontawesome\FontAwesomeFacade');
28: });
29: }
30:
31: public function provides()
32: {
33: return array('fontawesome');
34: }
35:
36: }
37: