@@ -24,22 +24,6 @@ class InstallPermissionDemo extends Command
24
24
25
25
protected $ routesPath = __DIR__ .'/../../routes/ ' ;
26
26
27
- /**
28
- * Get the composer command for the environment.
29
- *
30
- * @return string
31
- */
32
- protected function findComposer ()
33
- {
34
- if (file_exists (getcwd ().'/composer.phar ' )) {
35
- return '" ' .PHP_BINARY .'" ' .getcwd ().'/composer.phar ' ;
36
- }
37
- return 'composer ' ;
38
- }
39
- // public function fire(Filesystem $filesystem)
40
- // {
41
- // return $this->handle($filesystem);
42
- // }
43
27
/**
44
28
* Execute the console command.
45
29
*
@@ -49,11 +33,6 @@ protected function findComposer()
49
33
*/
50
34
public function handle ( Filesystem $ filesystem )
51
35
{
52
- $ this ->info ('Dumping the autoloaded files and reloading all new files ' );
53
- $ composer = $ this ->findComposer ();
54
- $ process = new Process ($ composer .' dump-autoload ' );
55
- $ process ->setTimeout (null ); // Setting timeout to null to prevent installation from stopping at a certain point in time
56
- $ process ->setWorkingDirectory (base_path ())->run ();
57
36
58
37
$ this ->info ('Adding Demo Routes and resources ' );
59
38
$ demo_routes = $ this ->routesPath .'demo.php ' ;
@@ -68,8 +47,5 @@ public function handle( Filesystem $filesystem)
68
47
);
69
48
}
70
49
}
71
-
72
- $ this ->info ('Publishing resources ' );
73
- $ this ->call ('vendor:publish ' , ['--provider ' => PermissionServiceProvider::class, '--tag ' => ['permission.resources ' ]]);
74
50
}
75
51
}
0 commit comments