Yii.php 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Yii bootstrap file.
  4. * Used for enhanced IDE code autocompletion.
  5. */
  6. class Yii extends \yii\BaseYii
  7. {
  8. /**
  9. * @var BaseApplication|WebApplication|ConsoleApplication the application instance
  10. */
  11. public static $app;
  12. }
  13. /**
  14. * Class BaseApplication
  15. * Used for properties that are identical for both WebApplication and ConsoleApplication
  16. *
  17. * @property yii\redis\Connection $redis
  18. */
  19. abstract class BaseApplication extends yii\base\Application
  20. {
  21. }
  22. /**
  23. * Class WebApplication
  24. * Include only Web application related components here
  25. *
  26. */
  27. class WebApplication extends yii\web\Application
  28. {
  29. }
  30. /**
  31. * Class ConsoleApplication
  32. * Include only Console application related components here
  33. *
  34. */
  35. class ConsoleApplication extends yii\console\Application
  36. {
  37. }