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
0baf5ad9
Commit
0baf5ad9
authored
May 04, 2012
by
Phill Sparks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix View's use of Events so you can actually implement your own things
Signed-off-by: Phill Sparks <me@phills.me.uk>
parent
e85ca96e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
laravel/blade.php
+1
-1
laravel/event.php
+2
-1
laravel/view.php
+3
-3
No files found.
laravel/blade.php
View file @
0baf5ad9
...
...
@@ -42,7 +42,7 @@ class Blade {
// return false so the View can be rendered as normal.
if
(
!
str_contains
(
$view
->
path
,
BLADE_EXT
))
{
return
false
;
return
;
}
$compiled
=
path
(
'storage'
)
.
'views/'
.
md5
(
$view
->
path
);
...
...
laravel/event.php
View file @
0baf5ad9
...
...
@@ -151,7 +151,7 @@ class Event {
}
}
return
$responses
;
return
$
halt
?
null
:
$
responses
;
}
}
\ No newline at end of file
laravel/view.php
View file @
0baf5ad9
...
...
@@ -125,7 +125,7 @@ class View implements ArrayAccess {
// We delegate the determination of view paths to the view loader event
// so that the developer is free to override and manage the loading
// of views in any way they see fit for their application.
$path
=
Event
::
first
(
static
::
loader
,
array
(
$bundle
,
$view
));
$path
=
Event
::
until
(
static
::
loader
,
array
(
$bundle
,
$view
));
if
(
!
is_null
(
$path
))
{
...
...
@@ -322,9 +322,9 @@ class View implements ArrayAccess {
// allows easy attachment of other view parsers.
if
(
Event
::
listeners
(
static
::
engine
))
{
$result
=
Event
::
first
(
static
::
engine
,
array
(
$this
));
$result
=
Event
::
until
(
static
::
engine
,
array
(
$this
));
if
(
$result
!==
false
)
return
$result
;
if
(
!
is_null
(
$result
)
)
return
$result
;
}
return
$this
->
get
();
...
...
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