← All changes
|
vendor/wpfluent/framework/src/WPFluent/Http/Controller.php
+11
-0
1.3.26
→
1.6.5
View file →
| @@ -6,8 +6,19 @@ | ||
| 6 | 6 | use ReflectionException; |
| 7 | 7 | use FluentCart\Framework\Foundation\App; |
| 8 | 8 | use FluentCart\Framework\Validator\ValidationException; |
| 9 | 9 | |
| 10 | +/** | |
| 11 | + * Base controller — exposes the Application, Request, and Response | |
| 12 | + * via protected properties. The `@property` annotations below are | |
| 13 | + * intentional in addition to the protected declarations: they help | |
| 14 | + * PHPStan disambiguate when a subclass declares a method with the | |
| 15 | + * same name as one of these properties (e.g., `function app()`). | |
| 16 | + * | |
| 17 | + * @property \FluentCart\Framework\Foundation\Application $app | |
| 18 | + * @property \FluentCart\Framework\Http\Request\Request $request | |
| 19 | + * @property \FluentCart\Framework\Http\Response\Response $response | |
| 20 | + */ | |
| 10 | 21 | abstract class Controller |
| 11 | 22 | { |
| 12 | 23 | /** |
| 13 | 24 | * Application Instance |