Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
dbf43877
Commit
dbf43877
authored
Aug 02, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added packages auto-load array.
parent
fb984016
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
application/config/package.php
+25
-0
public/index.php
+7
-0
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
...
@@ -141,6 +141,13 @@ require SYS_PATH.'routing/loader'.EXT;
...
@@ -141,6 +141,13 @@ require SYS_PATH.'routing/loader'.EXT;
require
SYS_PATH
.
'routing/filter'
.
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.
// Register the route filters.
// --------------------------------------------------------------
// --------------------------------------------------------------
System\Routing\Filter
::
register
(
require
ROUTE_PATH
.
'filters'
.
EXT
);
System\Routing\Filter
::
register
(
require
ROUTE_PATH
.
'filters'
.
EXT
);
...
...
system/package.php
View file @
dbf43877
...
@@ -23,6 +23,8 @@ class Package {
...
@@ -23,6 +23,8 @@ class Package {
{
{
static
::
load
(
$value
);
static
::
load
(
$value
);
}
}
return
;
}
}
// Packages may have a bootstrap file, which commonly is used to register auto-loaders
// 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