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
7af5afc4
Commit
7af5afc4
authored
Apr 30, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow starter Closure for bundles.
parent
efe3de68
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
bundle.php
laravel/bundle.php
+6
-2
changes.md
laravel/documentation/changes.md
+1
-0
No files found.
laravel/bundle.php
View file @
7af5afc4
...
@@ -92,8 +92,12 @@ class Bundle {
...
@@ -92,8 +92,12 @@ class Bundle {
// Each bundle may have a start script which is responsible for preparing
// Each bundle may have a start script which is responsible for preparing
// the bundle for use by the application. The start script may register
// the bundle for use by the application. The start script may register
// any classes the bundle uses with the auto-loader, etc.
// any classes the bundle uses with the auto-loader class, etc.
if
(
file_exists
(
$path
=
static
::
path
(
$bundle
)
.
'start'
.
EXT
))
if
(
!
is_null
(
$starter
=
static
::
option
(
$bundle
,
'starter'
)))
{
$starter
();
}
elseif
(
file_exists
(
$path
=
static
::
path
(
$bundle
)
.
'start'
.
EXT
))
{
{
require
$path
;
require
$path
;
}
}
...
...
laravel/documentation/changes.md
View file @
7af5afc4
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
-
Added
`array_pluck`
helper, similar to pluck method in Underscore.js.
-
Added
`array_pluck`
helper, similar to pluck method in Underscore.js.
-
Allow the registration of custom cache and session drivers.
-
Allow the registration of custom cache and session drivers.
-
Allow the specification of a separate asset base URL for using CDNs.
-
Allow the specification of a separate asset base URL for using CDNs.
-
Allow a
`starter`
Closure to be defined in
`bundles.php`
to be run on Bundle::start.
<a
name=
"upgrade-3.2"
></a>
<a
name=
"upgrade-3.2"
></a>
## Upgrading From 3.1
## Upgrading From 3.1
...
...
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