Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
3e398d1b
Commit
3e398d1b
authored
Feb 07, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added auto start bundle option.
parent
3292024e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
application.php
application/config/application.php
+8
-2
laravel.php
laravel/laravel.php
+2
-2
No files found.
application/config/application.php
View file @
3e398d1b
...
...
@@ -112,12 +112,18 @@ return array(
| as the name of a bundle and the URIs it responds to. This value is
| the number of that bundle info is cached.
|
| Auto:
|
| You may wish to auto-start some bundles instead of lazy-loading them.
| This is useful for debug bundles as well as bundles that are used
| throughout your application. You may specify which bundles should
| be auto-loaded in this array.
|
*/
'bundle'
=>
array
(
'cache'
=>
0
,
'auto'
=>
array
(),
),
/*
...
...
laravel/laravel.php
View file @
3e398d1b
...
...
@@ -136,9 +136,9 @@ Bundle::start(DEFAULT_BUNDLE);
* array of auto-loaded bundles. This lets the developer have an
* easy way to load bundles for every request.
*/
foreach
(
Bundle
::
all
()
as
$bundle
=>
$config
)
foreach
(
Config
::
get
(
'application.bundle.auto'
)
as
$bundle
)
{
if
(
$config
[
'auto'
])
Bundle
::
start
(
$bundle
);
Bundle
::
start
(
$bundle
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment