1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-02 02:12:37 +02:00

psr2 fixes

This commit is contained in:
Oliver Vogel
2013-02-15 20:01:53 +01:00
parent 27bbfb0c1b
commit bac53270b0
5 changed files with 193 additions and 191 deletions

View File

@@ -1,46 +1,48 @@
<?php namespace Intervention\Image; <?php
namespace Intervention\Image;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
class ImageServiceProvider extends ServiceProvider { class ImageServiceProvider extends ServiceProvider
{
/** /**
* Indicates if loading of the provider is deferred. * Indicates if loading of the provider is deferred.
* *
* @var bool * @var bool
*/ */
protected $defer = false; protected $defer = false;
/** /**
* Bootstrap the application events. * Bootstrap the application events.
* *
* @return void * @return void
*/ */
public function boot() public function boot()
{ {
$this->package('intervention/image'); $this->package('intervention/image');
} }
/** /**
* Register the service provider. * Register the service provider.
* *
* @return void * @return void
*/ */
public function register() public function register()
{ {
$this->app['image'] = $this->app->share(function($app) { $this->app['image'] = $this->app->share(function($app) {
return new Image; return new Image;
}); });
} }
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return array('image');
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return array('image');
}
} }