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
8e8ef861
Commit
8e8ef861
authored
Sep 02, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1013 from Jakobud/bug/artisan-task-route
Artisan route task was ignoring the specified route
parents
5b14091e
43331818
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
route.php
laravel/cli/tasks/route.php
+3
-3
No files found.
laravel/cli/tasks/route.php
View file @
8e8ef861
...
@@ -14,7 +14,7 @@ class Route extends Task {
...
@@ -14,7 +14,7 @@ class Route extends Task {
*/
*/
public
function
call
(
$arguments
=
array
())
public
function
call
(
$arguments
=
array
())
{
{
if
(
!
count
(
$arguments
)
=
=
2
)
if
(
count
(
$arguments
)
!
=
2
)
{
{
throw
new
\Exception
(
"Please specify a request method and URI."
);
throw
new
\Exception
(
"Please specify a request method and URI."
);
}
}
...
@@ -41,7 +41,7 @@ class Route extends Task {
...
@@ -41,7 +41,7 @@ class Route extends Task {
// We'll call the router using the method and URI specified by
// We'll call the router using the method and URI specified by
// the developer on the CLI. If a route is found, we will not
// the developer on the CLI. If a route is found, we will not
// run the filters, but simply dump the result.
// run the filters, but simply dump the result.
$route
=
Router
::
route
(
Request
::
method
(),
URI
::
current
()
);
$route
=
Router
::
route
(
Request
::
method
(),
$_SERVER
[
'REQUEST_URI'
]
);
if
(
!
is_null
(
$route
))
if
(
!
is_null
(
$route
))
{
{
...
@@ -53,4 +53,4 @@ class Route extends Task {
...
@@ -53,4 +53,4 @@ class Route extends Task {
}
}
}
}
}
}
\ No newline at end of file
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