This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-22
lines changed Expand file tree Collapse file tree 3 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 14
14
15
15
"require" : {
16
16
"php" : " >=5.4.0" ,
17
- "enshrined/svg-sanitize" : " 0.2.*"
17
+ "enshrined/svg-sanitize" : " 0.2.*" ,
18
+ "illuminate/support" : " 5.1.*"
18
19
},
19
20
20
21
"require-dev" : {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class FileSleuth
12
12
protected $ detectives = [
13
13
'InfinityNext\Sleuth\Detectives\ImageGDDetective ' ,
14
14
'InfinityNext\Sleuth\Detectives\ffmpegDetective ' ,
15
+ 'InfinityNext\Sleuth\Detectives\svgDetective ' ,
15
16
];
16
17
17
18
/**
Original file line number Diff line number Diff line change 7
7
class SleuthServiceProvider extends ServiceProvider
8
8
{
9
9
/**
10
- * Bootstrap the application events .
10
+ * Indicates if loading of the provider is deferred .
11
11
*
12
- * @return void
12
+ * @var bool
13
13
*/
14
- public function boot ()
15
- {
16
- // $this->publishes(array(
17
- // __DIR__.'/../../config/config.php' => config_path('image.php')
18
- // ));
19
- }
14
+ protected $ defer = true ;
20
15
21
16
/**
22
17
* Register the service provider.
@@ -25,29 +20,20 @@ public function boot()
25
20
*/
26
21
public function register ()
27
22
{
28
- $ app = $ this ->app ;
29
-
30
- // merge default config
31
- // $this->mergeConfigFrom(
32
- // __DIR__.'/../../config/config.php',
33
- // 'image'
34
- // );
35
-
36
- // create image
37
- $ app ['sleuth ' ] = $ app ->share (function ($ app ) {
23
+ $ this ->app ->bindShared (function ($ app ) {
38
24
return new FileSleuth (); //$app['config']->get('sleuth'));
39
25
});
40
26
41
- $ app ->alias ('sleuth ' , 'InfinityNext\Sleuth\FileSleuth ' );
27
+ $ this -> app ->alias ('sleuth ' , 'InfinityNext\Sleuth\FileSleuth ' );
42
28
}
43
29
44
- /**6
30
+ /**
45
31
* Get the services provided by the provider.
46
32
*
47
33
* @return array
48
34
*/
49
35
public function provides ()
50
36
{
51
- return array ('sleuth ' );
37
+ return array ('sleuth ' , ' InfinityNext\Sleuth\FileSleuth ' );
52
38
}
53
39
}
You can’t perform that action at this time.
0 commit comments