CreatesApplication.php 494 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Tests\Traits;
  11. trait CreatesApplication
  12. {
  13. /**
  14. * Creates the application.
  15. *
  16. * @return \Laravel\Lumen\Application
  17. */
  18. public function createApplication()
  19. {
  20. return require __DIR__.'/../../bootstrap/app.php';
  21. }
  22. }