猎户素材采集系统

CreatesApplication.php 380B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Tests;
  3. use Illuminate\Contracts\Console\Kernel;
  4. trait CreatesApplication
  5. {
  6. /**
  7. * Creates the application.
  8. *
  9. * @return \Illuminate\Foundation\Application
  10. */
  11. public function createApplication()
  12. {
  13. $app = require __DIR__.'/../bootstrap/app.php';
  14. $app->make(Kernel::class)->bootstrap();
  15. return $app;
  16. }
  17. }