Skip to content

Commit af9d7b4

Browse files
committed
Import laravel and create the build hook
1 parent 4d84b14 commit af9d7b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1913
-161
lines changed

.openshift/action_hooks/build

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
export COMPOSER_HOME="$OPENSHIFT_DATA_DIR/.composer"
4+
5+
if [ ! -f "$OPENSHIFT_DATA_DIR/composer.phar" ]; then
6+
curl -s https://getcomposer.org/installer | /usr/local/zend/bin/php -- --install-dir=$OPENSHIFT_DATA_DIR
7+
else
8+
/usr/local/zend/bin/php $OPENSHIFT_DATA_DIR/composer.phar self-update
9+
fi
10+
11+
( unset GIT_DIR ; cd $OPENSHIFT_REPO_DIR ; /usr/local/zend/bin/php composer.phar install )

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contribution Guidelines
2+
3+
Please submit all issues and pull requests to the [laravel/framework](http://github.com/laravel/framework) repository!

app/commands/.gitkeep

Whitespace-only changes.

app/config/app.php

+184
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Application Debug Mode
8+
|--------------------------------------------------------------------------
9+
|
10+
| When your application is in debug mode, detailed error messages with
11+
| stack traces will be shown on every error that occurs within your
12+
| application. If disabled, a simple generic error page is shown.
13+
|
14+
*/
15+
16+
'debug' => true,
17+
18+
/*
19+
|--------------------------------------------------------------------------
20+
| Application URL
21+
|--------------------------------------------------------------------------
22+
|
23+
| This URL is used by the console to properly generate URLs when using
24+
| the Artisan command line tool. You should set this to the root of
25+
| your application so that it is used when running Artisan tasks.
26+
|
27+
*/
28+
29+
'url' => 'http://localhost',
30+
31+
/*
32+
|--------------------------------------------------------------------------
33+
| Application Timezone
34+
|--------------------------------------------------------------------------
35+
|
36+
| Here you may specify the default timezone for your application, which
37+
| will be used by the PHP date and date-time functions. We have gone
38+
| ahead and set this to a sensible default for you out of the box.
39+
|
40+
*/
41+
42+
'timezone' => 'UTC',
43+
44+
/*
45+
|--------------------------------------------------------------------------
46+
| Application Locale Configuration
47+
|--------------------------------------------------------------------------
48+
|
49+
| The application locale determines the default locale that will be used
50+
| by the translation service provider. You are free to set this value
51+
| to any of the locales which will be supported by the application.
52+
|
53+
*/
54+
55+
'locale' => 'en',
56+
57+
/*
58+
|--------------------------------------------------------------------------
59+
| Encryption Key
60+
|--------------------------------------------------------------------------
61+
|
62+
| This key is used by the Illuminate encrypter service and should be set
63+
| to a random, 32 character string, otherwise these encrypted strings
64+
| will not be safe. Please do this before deploying an application!
65+
|
66+
*/
67+
68+
'key' => 'YourSecretKey!!!',
69+
70+
/*
71+
|--------------------------------------------------------------------------
72+
| Autoloaded Service Providers
73+
|--------------------------------------------------------------------------
74+
|
75+
| The service providers listed here will be automatically loaded on the
76+
| request to your application. Feel free to add your own services to
77+
| this array to grant expanded functionality to your applications.
78+
|
79+
*/
80+
81+
'providers' => array(
82+
83+
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
84+
'Illuminate\Auth\AuthServiceProvider',
85+
'Illuminate\Cache\CacheServiceProvider',
86+
'Illuminate\Foundation\Providers\CommandCreatorServiceProvider',
87+
'Illuminate\Session\CommandsServiceProvider',
88+
'Illuminate\Foundation\Providers\ComposerServiceProvider',
89+
'Illuminate\Routing\ControllerServiceProvider',
90+
'Illuminate\Cookie\CookieServiceProvider',
91+
'Illuminate\Database\DatabaseServiceProvider',
92+
'Illuminate\Encryption\EncryptionServiceProvider',
93+
'Illuminate\Filesystem\FilesystemServiceProvider',
94+
'Illuminate\Hashing\HashServiceProvider',
95+
'Illuminate\Html\HtmlServiceProvider',
96+
'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider',
97+
'Illuminate\Log\LogServiceProvider',
98+
'Illuminate\Mail\MailServiceProvider',
99+
'Illuminate\Foundation\Providers\MaintenanceServiceProvider',
100+
'Illuminate\Database\MigrationServiceProvider',
101+
'Illuminate\Foundation\Providers\OptimizeServiceProvider',
102+
'Illuminate\Pagination\PaginationServiceProvider',
103+
'Illuminate\Foundation\Providers\PublisherServiceProvider',
104+
'Illuminate\Queue\QueueServiceProvider',
105+
'Illuminate\Redis\RedisServiceProvider',
106+
'Illuminate\Auth\Reminders\ReminderServiceProvider',
107+
'Illuminate\Foundation\Providers\RouteListServiceProvider',
108+
'Illuminate\Database\SeedServiceProvider',
109+
'Illuminate\Foundation\Providers\ServerServiceProvider',
110+
'Illuminate\Session\SessionServiceProvider',
111+
'Illuminate\Foundation\Providers\TinkerServiceProvider',
112+
'Illuminate\Translation\TranslationServiceProvider',
113+
'Illuminate\Validation\ValidationServiceProvider',
114+
'Illuminate\View\ViewServiceProvider',
115+
'Illuminate\Workbench\WorkbenchServiceProvider',
116+
117+
),
118+
119+
/*
120+
|--------------------------------------------------------------------------
121+
| Service Provider Manifest
122+
|--------------------------------------------------------------------------
123+
|
124+
| The service provider manifest is used by Laravel to lazy load service
125+
| providers which are not needed for each request, as well to keep a
126+
| list of all of the services. Here, you may set its storage spot.
127+
|
128+
*/
129+
130+
'manifest' => storage_path().'/meta',
131+
132+
/*
133+
|--------------------------------------------------------------------------
134+
| Class Aliases
135+
|--------------------------------------------------------------------------
136+
|
137+
| This array of class aliases will be registered when this application
138+
| is started. However, feel free to register as many as you wish as
139+
| the aliases are "lazy" loaded so they don't hinder performance.
140+
|
141+
*/
142+
143+
'aliases' => array(
144+
145+
'App' => 'Illuminate\Support\Facades\App',
146+
'Artisan' => 'Illuminate\Support\Facades\Artisan',
147+
'Auth' => 'Illuminate\Support\Facades\Auth',
148+
'Blade' => 'Illuminate\Support\Facades\Blade',
149+
'Cache' => 'Illuminate\Support\Facades\Cache',
150+
'ClassLoader' => 'Illuminate\Support\ClassLoader',
151+
'Config' => 'Illuminate\Support\Facades\Config',
152+
'Controller' => 'Illuminate\Routing\Controllers\Controller',
153+
'Cookie' => 'Illuminate\Support\Facades\Cookie',
154+
'Crypt' => 'Illuminate\Support\Facades\Crypt',
155+
'DB' => 'Illuminate\Support\Facades\DB',
156+
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
157+
'Event' => 'Illuminate\Support\Facades\Event',
158+
'File' => 'Illuminate\Support\Facades\File',
159+
'Form' => 'Illuminate\Support\Facades\Form',
160+
'Hash' => 'Illuminate\Support\Facades\Hash',
161+
'HTML' => 'Illuminate\Support\Facades\HTML',
162+
'Input' => 'Illuminate\Support\Facades\Input',
163+
'Lang' => 'Illuminate\Support\Facades\Lang',
164+
'Log' => 'Illuminate\Support\Facades\Log',
165+
'Mail' => 'Illuminate\Support\Facades\Mail',
166+
'Paginator' => 'Illuminate\Support\Facades\Paginator',
167+
'Password' => 'Illuminate\Support\Facades\Password',
168+
'Queue' => 'Illuminate\Support\Facades\Queue',
169+
'Redirect' => 'Illuminate\Support\Facades\Redirect',
170+
'Redis' => 'Illuminate\Support\Facades\Redis',
171+
'Request' => 'Illuminate\Support\Facades\Request',
172+
'Response' => 'Illuminate\Support\Facades\Response',
173+
'Route' => 'Illuminate\Support\Facades\Route',
174+
'Schema' => 'Illuminate\Support\Facades\Schema',
175+
'Seeder' => 'Illuminate\Database\Seeder',
176+
'Session' => 'Illuminate\Support\Facades\Session',
177+
'Str' => 'Illuminate\Support\Str',
178+
'URL' => 'Illuminate\Support\Facades\URL',
179+
'Validator' => 'Illuminate\Support\Facades\Validator',
180+
'View' => 'Illuminate\Support\Facades\View',
181+
182+
),
183+
184+
);

app/config/auth.php

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Default Authentication Driver
8+
|--------------------------------------------------------------------------
9+
|
10+
| This option controls the authentication driver that will be utilized.
11+
| This drivers manages the retrieval and authentication of the users
12+
| attempting to get access to protected areas of your application.
13+
|
14+
| Supported: "database", "eloquent"
15+
|
16+
*/
17+
18+
'driver' => 'eloquent',
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Authentication Model
23+
|--------------------------------------------------------------------------
24+
|
25+
| When using the "Eloquent" authentication driver, we need to know which
26+
| Eloquent model should be used to retrieve your users. Of course, it
27+
| is often just the "User" model but you may use whatever you like.
28+
|
29+
*/
30+
31+
'model' => 'User',
32+
33+
/*
34+
|--------------------------------------------------------------------------
35+
| Authentication Table
36+
|--------------------------------------------------------------------------
37+
|
38+
| When using the "Database" authentication driver, we need to know which
39+
| table should be used to retrieve your users. We have chosen a basic
40+
| default value but you may easily change it to any table you like.
41+
|
42+
*/
43+
44+
'table' => 'users',
45+
46+
/*
47+
|--------------------------------------------------------------------------
48+
| Password Reminder Settings
49+
|--------------------------------------------------------------------------
50+
|
51+
| Here you may set the settings for password reminders, including a view
52+
| that should be used as your password reminder e-mail. You will also
53+
| be able to set the name of the table that holds the reset tokens.
54+
|
55+
*/
56+
57+
'reminder' => array(
58+
59+
'email' => 'emails.auth.reminder',
60+
61+
'table' => 'password_reminders',
62+
63+
'expire' => 60,
64+
65+
),
66+
67+
);

app/config/cache.php

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Default Cache Driver
8+
|--------------------------------------------------------------------------
9+
|
10+
| This option controls the default cache "driver" that will be used when
11+
| using the Caching library. Of course, you may use other drivers any
12+
| time you wish. This is the default when another is not specified.
13+
|
14+
| Supported: "file", "database", "apc", "memcached", "redis", "array"
15+
|
16+
*/
17+
18+
'driver' => 'file',
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| File Cache Location
23+
|--------------------------------------------------------------------------
24+
|
25+
| When using the "file" cache driver, we need a location where the cache
26+
| files may be stored. A sensible default has been specified, but you
27+
| are free to change it to any other place on disk that you desire.
28+
|
29+
*/
30+
31+
'path' => storage_path().'/cache',
32+
33+
/*
34+
|--------------------------------------------------------------------------
35+
| Database Cache Connection
36+
|--------------------------------------------------------------------------
37+
|
38+
| When using the "database" cache driver you may specify the connection
39+
| that should be used to store the cached items. When this option is
40+
| null the default database connection will be utilized for cache.
41+
|
42+
*/
43+
44+
'connection' => null,
45+
46+
/*
47+
|--------------------------------------------------------------------------
48+
| Database Cache Table
49+
|--------------------------------------------------------------------------
50+
|
51+
| When using the "database" cache driver we need to know the table that
52+
| should be used to store the cached items. A default table name has
53+
| been provided but you're free to change it however you deem fit.
54+
|
55+
*/
56+
57+
'table' => 'cache',
58+
59+
/*
60+
|--------------------------------------------------------------------------
61+
| Memcached Servers
62+
|--------------------------------------------------------------------------
63+
|
64+
| Now you may specify an array of your Memcached servers that should be
65+
| used when utilizing the Memcached cache driver. All of the servers
66+
| should contain a value for "host", "port", and "weight" options.
67+
|
68+
*/
69+
70+
'memcached' => array(
71+
72+
array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
73+
74+
),
75+
76+
/*
77+
|--------------------------------------------------------------------------
78+
| Cache Key Prefix
79+
|--------------------------------------------------------------------------
80+
|
81+
| When utilizing a RAM based store such as APC or Memcached, there might
82+
| be other applications utilizing the same cache. So, we'll specify a
83+
| value to get prefixed to all our keys so we can avoid collisions.
84+
|
85+
*/
86+
87+
'prefix' => 'laravel',
88+
89+
);

app/config/compile.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Additional Compiled Classes
8+
|--------------------------------------------------------------------------
9+
|
10+
| Here you may specify additional classes to include in the compiled file
11+
| generated by the `artisan optimize` command. These should be classes
12+
| that are included on basically every request into the application.
13+
|
14+
*/
15+
16+
17+
18+
);

0 commit comments

Comments
 (0)