Skip to content

Commit d412ea6

Browse files
committed
Base files
1 parent 3a5a0a0 commit d412ea6

File tree

5 files changed

+189
-0
lines changed

5 files changed

+189
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.htaccess

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<IfModule mod_rewrite.c>
2+
<IfModule mod_negotiation.c>
3+
Options -MultiViews
4+
</IfModule>
5+
6+
RewriteEngine On
7+
8+
##
9+
## Handle resource requests
10+
##
11+
RewriteCond %{REQUEST_URI} combine/.*(.css|.js)
12+
RewriteRule ^ index.php [L]
13+
14+
##
15+
## Black list protected files
16+
##
17+
RewriteRule themes/.*/(layouts|pages|partials)/.*.htm index.php [L,NC]
18+
RewriteRule uploads/protected/.* index.php [L,NC]
19+
20+
##
21+
## White listed folders and files
22+
##
23+
RewriteCond %{REQUEST_FILENAME} -f
24+
RewriteCond %{REQUEST_URI} !\.js
25+
RewriteCond %{REQUEST_URI} !\.ico
26+
RewriteCond %{REQUEST_URI} !\.jpg
27+
RewriteCond %{REQUEST_URI} !\.gif
28+
RewriteCond %{REQUEST_URI} !\.css
29+
RewriteCond %{REQUEST_URI} !\.less
30+
RewriteCond %{REQUEST_URI} !\.scss
31+
RewriteCond %{REQUEST_URI} !\.png
32+
RewriteCond %{REQUEST_URI} !\.swf
33+
RewriteCond %{REQUEST_URI} !\.txt
34+
RewriteCond %{REQUEST_URI} !\.xml
35+
RewriteCond %{REQUEST_URI} !\.xls
36+
RewriteCond %{REQUEST_URI} !\.eot
37+
RewriteCond %{REQUEST_URI} !\.woff
38+
RewriteCond %{REQUEST_URI} !\.ttf
39+
RewriteCond %{REQUEST_URI} !\.svg
40+
RewriteCond %{REQUEST_URI} !docs/.*
41+
RewriteCond %{REQUEST_URI} !themes/.*
42+
RewriteRule ^ index.php [L,NC]
43+
44+
##
45+
## Standard routes
46+
##
47+
RewriteCond %{REQUEST_FILENAME} !-f
48+
RewriteRule ^ index.php [L]
49+
50+
</IfModule>

artisan

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Register The Auto Loader
7+
|--------------------------------------------------------------------------
8+
|
9+
| Composer provides a convenient, automatically generated class loader
10+
| for our application. We just need to utilize it! We'll require it
11+
| into the script here so that we do not have to worry about the
12+
| loading of any our classes "manually". Feels great to relax.
13+
|
14+
*/
15+
16+
require __DIR__.'/bootstrap/autoload.php';
17+
18+
/*
19+
|--------------------------------------------------------------------------
20+
| Turn On The Lights
21+
|--------------------------------------------------------------------------
22+
|
23+
| We need to illuminate PHP development, so let's turn on the lights.
24+
| This bootstrap the framework and gets it ready for use, then it
25+
| will load up this application so that we can run it and send
26+
| the responses back to the browser and delight these users.
27+
|
28+
*/
29+
30+
$app = require_once __DIR__.'/bootstrap/start.php';
31+
32+
/*
33+
|--------------------------------------------------------------------------
34+
| Load The Artisan Console Application
35+
|--------------------------------------------------------------------------
36+
|
37+
| We'll need to run the script to load and return the Artisan console
38+
| application. We keep this in its own script so that we will load
39+
| the console application independent of running commands which
40+
| will allow us to fire commands from Routes when we want to.
41+
|
42+
*/
43+
44+
$app->setRequestForConsoleEnvironment();
45+
46+
$artisan = Illuminate\Console\Application::start($app);
47+
48+
/*
49+
|--------------------------------------------------------------------------
50+
| Run The Artisan Application
51+
|--------------------------------------------------------------------------
52+
|
53+
| When we run the console application, the current CLI command will be
54+
| executed in this console and the response sent back to a terminal
55+
| or another output device for the developers. Here goes nothing!
56+
|
57+
*/
58+
59+
$status = $artisan->run();
60+
61+
/*
62+
|--------------------------------------------------------------------------
63+
| Shutdown The Application
64+
|--------------------------------------------------------------------------
65+
|
66+
| Once Artisan has finished running. We will fire off the shutdown events
67+
| so that any final work may be done by the application before we shut
68+
| down the process. This is the last thing to happen to the request.
69+
|
70+
*/
71+
72+
$app->shutdown();
73+
74+
exit($status);

index.php

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
/**
3+
* October - The PHP platform that gets back to basics.
4+
*
5+
* @package October
6+
* @author Alexey Bobkov, Samuel Georges
7+
*/
8+
9+
/*
10+
|--------------------------------------------------------------------------
11+
| Register composer
12+
|--------------------------------------------------------------------------
13+
|
14+
| Composer provides a generated class loader for the application.
15+
|
16+
*/
17+
18+
require __DIR__.'/bootstrap/autoload.php';
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Load framework
23+
|--------------------------------------------------------------------------
24+
|
25+
| This bootstraps the framework and loads up this application.
26+
|
27+
*/
28+
29+
$app = require_once __DIR__.'/bootstrap/start.php';
30+
31+
/*
32+
|--------------------------------------------------------------------------
33+
| Process request
34+
|--------------------------------------------------------------------------
35+
|
36+
| Execute the request and send the response back to the client.
37+
|
38+
*/
39+
40+
$app->run();

phpunit.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="bootstrap/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
>
13+
<testsuites>
14+
<testsuite name="October CMS Test Suite">
15+
<directory>./tests</directory>
16+
</testsuite>
17+
<testsuite name="October Rain Test Suite">
18+
<directory>./vendor/october/rain/tests</directory>
19+
</testsuite>
20+
<testsuite name="Laravel Test Suite">
21+
<directory>./vendor/laravel/framework/tests</directory>
22+
</testsuite>
23+
</testsuites>
24+
</phpunit>

0 commit comments

Comments
 (0)