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
dbf43877
Commit
dbf43877
authored
Aug 03, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added packages auto-load array.
parent
fb984016
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
package.php
application/config/package.php
+24
-0
index.php
public/index.php
+7
-0
package.php
system/package.php
+2
-0
No files found.
application/config/package.php
0 → 100644
View file @
dbf43877
<?php
return
array
(
/*
|--------------------------------------------------------------------------
| Auto-Loaded Packages
|--------------------------------------------------------------------------
|
| The packages that should be auto-loaded each time Laravel handles
| a request. These should generally be packages that you use on almost
| every request to your application.
|
| Each package specified here will be bootstrapped and can be conveniently
| used by your application's routes, models, and libraries.
|
| Note: The package names in this array should correspond to a package
| directory in application/packages.
|
*/
'autoload'
=>
array
(),
);
\ No newline at end of file
public/index.php
View file @
dbf43877
...
...
@@ -140,6 +140,13 @@ require SYS_PATH.'routing/router'.EXT;
require
SYS_PATH
.
'routing/loader'
.
EXT
;
require
SYS_PATH
.
'routing/filter'
.
EXT
;
// --------------------------------------------------------------
// Load the packages that are in the auto-loaded packages array.
// --------------------------------------------------------------
require
SYS_PATH
.
'package'
.
EXT
;
System\Package
::
load
(
System\Config
::
get
(
'packages.autoload'
));
// --------------------------------------------------------------
// Register the route filters.
// --------------------------------------------------------------
...
...
system/package.php
View file @
dbf43877
...
...
@@ -23,6 +23,8 @@ class Package {
{
static
::
load
(
$value
);
}
return
;
}
// Packages may have a bootstrap file, which commonly is used to register auto-loaders
...
...
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