File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace TweakPHP \Client \Loaders ;
44
5+ use Illuminate \Support \Env ;
6+ use Laravel \Tinker \ClassAliasAutoloader ;
7+
58class LaravelLoader extends ComposerLoader
69{
710 private $ app ;
@@ -60,15 +63,15 @@ public function casters(): array
6063
6164 private function bootAliases (): void
6265 {
63- if (! class_exists (\ Laravel \ Tinker \ ClassAliasAutoloader::class)) {
66+ if (! class_exists (ClassAliasAutoloader::class)) {
6467 return ;
6568 }
6669
6770 $ config = $ this ->app ->make ('config ' );
6871
69- $ path = \ Illuminate \ Support \ Env::get ('COMPOSER_VENDOR_DIR ' , $ this ->app ->basePath ().DIRECTORY_SEPARATOR .'vendor ' );
72+ $ path = Env::get ('COMPOSER_VENDOR_DIR ' , $ this ->app ->basePath ().DIRECTORY_SEPARATOR .'vendor ' );
7073
71- \ Laravel \ Tinker \ ClassAliasAutoloader::register (
74+ ClassAliasAutoloader::register (
7275 $ this ->tinker ->getShell (),
7376 $ path .'/composer/autoload_classmap.php ' ,
7477 $ config ->get ('tinker.alias ' , []),
Original file line number Diff line number Diff line change 33namespace TweakPHP \Client \Loaders ;
44
55use Composer \InstalledVersions ;
6+ use Pimcore \Bootstrap ;
67
78class PimcoreLoader extends BaseLoader
89{
@@ -11,9 +12,9 @@ public function __construct(string $path)
1112 require_once $ path .'/vendor/autoload.php ' ;
1213
1314 if (class_exists ('\Pimcore\Bootstrap ' )) {
14- \ Pimcore \ Bootstrap::setProjectRoot ();
15- \ Pimcore \ Bootstrap::bootstrap ();
16- \ Pimcore \ Bootstrap::kernel ();
15+ Bootstrap::setProjectRoot ();
16+ Bootstrap::bootstrap ();
17+ Bootstrap::kernel ();
1718 }
1819 }
1920
Original file line number Diff line number Diff line change 22
33namespace TweakPHP \Client \Loaders ;
44
5+ use Symfony \Component \HttpKernel \Kernel ;
6+
57class SymfonyLoader extends ComposerLoader
68{
79 private $ kernel ;
@@ -44,7 +46,7 @@ public function name(): string
4446 public function version (): string
4547 {
4648 if (class_exists ('Symfony\Component\HttpKernel\Kernel ' )) {
47- return \ Symfony \ Component \ HttpKernel \ Kernel::VERSION ;
49+ return Kernel::VERSION ;
4850 }
4951
5052 return '' ;
You can’t perform that action at this time.
0 commit comments