@@ -27,6 +27,7 @@ public static function isAppFramework()
2727 // using `get_declared_classes()` function will return all classes in your project
2828 return self ::checkAnyClassExists ([
2929 '\Illuminate\Foundation\Application ' , // Laravel
30+ '\Illuminate \\Container \\Container ' , // Laravel
3031 '\CI_Controller ' , // CodeIgniter
3132 '\Cake\Controller\Controller ' , // CakePHP
3233 '\Symfony\Component\HttpKernel\Kernel ' , // Symfony
@@ -41,7 +42,10 @@ public static function isAppFramework()
4142 */
4243 public static function isLaravel ()
4344 {
44- return self ::checkClassExists ('\Illuminate\Foundation\Application ' );
45+ return self ::checkAnyClassExists ([
46+ '\Illuminate\Foundation\Application ' ,
47+ '\Illuminate \\Container \\Container ' ,
48+ ]);
4549 }
4650
4751 /**
@@ -51,7 +55,7 @@ public static function isLaravel()
5155 */
5256 public static function isCodeIgniter ()
5357 {
54- return self ::checkClassExists ('\CI_Controller ' );
58+ return self ::checkAnyClassExists ('\CI_Controller ' );
5559 }
5660
5761 /**
@@ -61,7 +65,7 @@ public static function isCodeIgniter()
6165 */
6266 public static function isCakePhp ()
6367 {
64- return self ::checkClassExists ('\Cake\Controller\Controller ' );
68+ return self ::checkAnyClassExists ('\Cake\Controller\Controller ' );
6569 }
6670
6771 /**
@@ -71,7 +75,7 @@ public static function isCakePhp()
7175 */
7276 public static function isSymfony ()
7377 {
74- return self ::checkClassExists ([
78+ return self ::checkAnyClassExists ([
7579 '\Symfony\Component\HttpKernel\Kernel ' ,
7680 '\Symfony\Component\Routing\Annotation\Route '
7781 ]);
0 commit comments