|
@@ -1,6 +1,5 @@
|
|
|
<?php namespace Abhimanyu003\Conversion;
|
|
|
|
|
|
-use Illuminate\Foundation\AliasLoader;
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
class ConversionServiceProvider extends ServiceProvider
|
|
@@ -20,19 +19,11 @@ class ConversionServiceProvider extends ServiceProvider
|
|
|
*/
|
|
|
public function register()
|
|
|
{
|
|
|
- $this->app['conversion'] = $this->app->share(function ($app) {
|
|
|
+ $this->app->bind('conversion', function ($app) {
|
|
|
return new Conversion;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- public function boot()
|
|
|
- {
|
|
|
- $this->package('abhimanyu003/conversion');
|
|
|
- $this->app->booting(function () {
|
|
|
- $loader = AliasLoader::getInstance();
|
|
|
- $loader->alias('Conversion', 'Abhimanyu003\Conversion\ConversionFacade');
|
|
|
- });
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* Get the services provided by the provider.
|