-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from bowphp/5.x-ref-update
Change framework version for release
- Loading branch information
Showing
8 changed files
with
62 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
.idea/ | ||
!.gitignore | ||
composer.lock | ||
node_modules | ||
vendor/ | ||
package-lock.json | ||
!.gitkeep | ||
!public/**/.gitkeep | ||
!var/**/.gitkeep | ||
.env.json | ||
config/.key | ||
mix-manifest.json | ||
.idea/ | ||
!.gitignore | ||
composer.lock | ||
node_modules | ||
vendor/ | ||
package-lock.json | ||
!.gitkeep | ||
!public/**/.gitkeep | ||
!var/**/.gitkeep | ||
.env.json | ||
config/.key | ||
mix-manifest.json | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<phpunit colors="true" bootstrap="tests/bootstrap.php" stopOnFailure="false"> | ||
<testsuite name="Application Testsuite"> | ||
<directory>tests/</directory> | ||
</testsuite> | ||
</phpunit> | ||
<phpunit colors="true" bootstrap="tests/bootstrap.php"> | ||
<testsuite name="Bow Framework Application Testsuite"> | ||
<directory suffix=".php">tests/</directory> | ||
</testsuite> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
<?php | ||
|
||
use App\Kernel; | ||
use Bow\Application\Application; | ||
use Bow\Http\Request; | ||
use Bow\Http\Response; | ||
|
||
// Register The Auto Loader | ||
if (!file_exists(__DIR__."/../vendor/autoload.php")) { | ||
die("Please install the depencencies with 'composer update'"); | ||
} | ||
|
||
require __DIR__."/../vendor/autoload.php"; | ||
|
||
// Create kernel instance | ||
$kernel = Kernel::configure(realpath(__DIR__.'/../config')); | ||
|
||
// Creation of application | ||
$app = Application::make(Request::getInstance(), Response::getInstance()); | ||
|
||
// Bind kernel to application | ||
$app->bind($kernel); | ||
|
||
// Load application routing | ||
require __DIR__ . "/../routes/app.php"; | ||
|
||
// Run The Application | ||
$app->send(); | ||
<?php | ||
|
||
use App\Kernel; | ||
use Bow\Application\Application; | ||
use Bow\Http\Request; | ||
use Bow\Http\Response; | ||
|
||
if (file_exists(__DIR__ . '/../var/storage/maintenance.php')) { | ||
require __DIR__ . '/../var/storage/maintenance.php'; | ||
} | ||
|
||
// Register The Auto Loader | ||
if (!file_exists(__DIR__ . "/../vendor/autoload.php")) { | ||
die("Please install the depencencies with 'composer update'"); | ||
} | ||
|
||
require __DIR__."/../vendor/autoload.php"; | ||
|
||
$app = Application::make(Request::getInstance(), Response::getInstance()); | ||
|
||
// Bind kernel to application | ||
$app->bind( | ||
Kernel::configure(realpath(__DIR__ . '/../config')) | ||
); | ||
|
||
// Load application routing | ||
require __DIR__ . "/../routes/app.php"; | ||
|
||
// Run The Application | ||
$app->send(); |