TestApp.php 346 B

123456789101112131415161718
  1. <?php
  2. declare(strict_types=1);
  3. namespace TestApp\Core;
  4. use Cake\Core\App;
  5. class TestApp extends App
  6. {
  7. public static $existsInBaseCallback;
  8. protected static function _classExistsInBase(string $name, string $namespace): bool
  9. {
  10. $callback = static::$existsInBaseCallback;
  11. return $callback($name, $namespace);
  12. }
  13. }