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
dd6402c6
Commit
dd6402c6
authored
Feb 16, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefix built-in events with laravel.
parent
7aa78e1a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
bundle.php
laravel/bundle.php
+1
-1
connection.php
laravel/database/connection.php
+1
-1
laravel.php
laravel/laravel.php
+1
-1
view.php
laravel/view.php
+2
-2
No files found.
laravel/bundle.php
View file @
dd6402c6
...
...
@@ -94,7 +94,7 @@ class Bundle {
// start script for reverse routing efficiency purposes.
static
::
routes
(
$bundle
);
Event
::
fire
(
"started:
{
$bundle
}
"
);
Event
::
fire
(
"
laravel.
started:
{
$bundle
}
"
);
static
::
$started
[]
=
strtolower
(
$bundle
);
}
...
...
laravel/database/connection.php
View file @
dd6402c6
...
...
@@ -240,7 +240,7 @@ class Connection {
*/
protected
function
log
(
$sql
,
$bindings
,
$time
)
{
Event
::
fire
(
'query'
,
array
(
$sql
,
$bindings
,
$time
));
Event
::
fire
(
'
laravel.
query'
,
array
(
$sql
,
$bindings
,
$time
));
static
::
$queries
[]
=
compact
(
'sql'
,
'bindings'
,
'time'
);
}
...
...
laravel/laravel.php
View file @
dd6402c6
...
...
@@ -210,4 +210,4 @@ Cookie::send();
*/
$response
->
send
();
Event
::
fire
(
'done'
);
\ No newline at end of file
Event
::
fire
(
'laravel.done'
);
\ No newline at end of file
laravel/view.php
View file @
dd6402c6
...
...
@@ -188,7 +188,7 @@ class View implements ArrayAccess {
*/
public
static
function
composer
(
$view
,
$composer
)
{
Event
::
listen
(
"composing:
{
$view
}
"
,
$composer
);
Event
::
listen
(
"
laravel.
composing:
{
$view
}
"
,
$composer
);
}
/**
...
...
@@ -201,7 +201,7 @@ class View implements ArrayAccess {
// To allow bundles or other pieces of the application to modify the
// view before it is rendered, we will fire an event, passing in the
// view instance so it can modified by any of the listeners.
Event
::
fire
(
"composing:
{
$this
->
view
}
"
,
array
(
$this
));
Event
::
fire
(
"
laravel.
composing:
{
$this
->
view
}
"
,
array
(
$this
));
$data
=
$this
->
data
();
...
...
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