forked from octobercms/october
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
189 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<IfModule mod_rewrite.c> | ||
<IfModule mod_negotiation.c> | ||
Options -MultiViews | ||
</IfModule> | ||
|
||
RewriteEngine On | ||
|
||
## | ||
## Handle resource requests | ||
## | ||
RewriteCond %{REQUEST_URI} combine/.*(.css|.js) | ||
RewriteRule ^ index.php [L] | ||
|
||
## | ||
## Black list protected files | ||
## | ||
RewriteRule themes/.*/(layouts|pages|partials)/.*.htm index.php [L,NC] | ||
RewriteRule uploads/protected/.* index.php [L,NC] | ||
|
||
## | ||
## White listed folders and files | ||
## | ||
RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteCond %{REQUEST_URI} !\.js | ||
RewriteCond %{REQUEST_URI} !\.ico | ||
RewriteCond %{REQUEST_URI} !\.jpg | ||
RewriteCond %{REQUEST_URI} !\.gif | ||
RewriteCond %{REQUEST_URI} !\.css | ||
RewriteCond %{REQUEST_URI} !\.less | ||
RewriteCond %{REQUEST_URI} !\.scss | ||
RewriteCond %{REQUEST_URI} !\.png | ||
RewriteCond %{REQUEST_URI} !\.swf | ||
RewriteCond %{REQUEST_URI} !\.txt | ||
RewriteCond %{REQUEST_URI} !\.xml | ||
RewriteCond %{REQUEST_URI} !\.xls | ||
RewriteCond %{REQUEST_URI} !\.eot | ||
RewriteCond %{REQUEST_URI} !\.woff | ||
RewriteCond %{REQUEST_URI} !\.ttf | ||
RewriteCond %{REQUEST_URI} !\.svg | ||
RewriteCond %{REQUEST_URI} !docs/.* | ||
RewriteCond %{REQUEST_URI} !themes/.* | ||
RewriteRule ^ index.php [L,NC] | ||
|
||
## | ||
## Standard routes | ||
## | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^ index.php [L] | ||
|
||
</IfModule> |
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register The Auto Loader | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Composer provides a convenient, automatically generated class loader | ||
| for our application. We just need to utilize it! We'll require it | ||
| into the script here so that we do not have to worry about the | ||
| loading of any our classes "manually". Feels great to relax. | ||
| | ||
*/ | ||
|
||
require __DIR__.'/bootstrap/autoload.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Turn On The Lights | ||
|-------------------------------------------------------------------------- | ||
| | ||
| We need to illuminate PHP development, so let's turn on the lights. | ||
| This bootstrap the framework and gets it ready for use, then it | ||
| will load up this application so that we can run it and send | ||
| the responses back to the browser and delight these users. | ||
| | ||
*/ | ||
|
||
$app = require_once __DIR__.'/bootstrap/start.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Load The Artisan Console Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| We'll need to run the script to load and return the Artisan console | ||
| application. We keep this in its own script so that we will load | ||
| the console application independent of running commands which | ||
| will allow us to fire commands from Routes when we want to. | ||
| | ||
*/ | ||
|
||
$app->setRequestForConsoleEnvironment(); | ||
|
||
$artisan = Illuminate\Console\Application::start($app); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Run The Artisan Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When we run the console application, the current CLI command will be | ||
| executed in this console and the response sent back to a terminal | ||
| or another output device for the developers. Here goes nothing! | ||
| | ||
*/ | ||
|
||
$status = $artisan->run(); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Shutdown The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Once Artisan has finished running. We will fire off the shutdown events | ||
| so that any final work may be done by the application before we shut | ||
| down the process. This is the last thing to happen to the request. | ||
| | ||
*/ | ||
|
||
$app->shutdown(); | ||
|
||
exit($status); |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* October - The PHP platform that gets back to basics. | ||
* | ||
* @package October | ||
* @author Alexey Bobkov, Samuel Georges | ||
*/ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register composer | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Composer provides a generated class loader for the application. | ||
| | ||
*/ | ||
|
||
require __DIR__.'/bootstrap/autoload.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Load framework | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This bootstraps the framework and loads up this application. | ||
| | ||
*/ | ||
|
||
$app = require_once __DIR__.'/bootstrap/start.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Process request | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Execute the request and send the response back to the client. | ||
| | ||
*/ | ||
|
||
$app->run(); |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="bootstrap/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
> | ||
<testsuites> | ||
<testsuite name="October CMS Test Suite"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
<testsuite name="October Rain Test Suite"> | ||
<directory>./vendor/october/rain/tests</directory> | ||
</testsuite> | ||
<testsuite name="Laravel Test Suite"> | ||
<directory>./vendor/laravel/framework/tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |