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
53a20533
Commit
53a20533
authored
Feb 13, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #335 from daylerees/develop
Show an error when an artisan task's method cannot be found.
parents
620f3ba9
29d062da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
command.php
laravel/cli/command.php
+9
-2
No files found.
laravel/cli/command.php
View file @
53a20533
...
@@ -42,7 +42,14 @@ class Command {
...
@@ -42,7 +42,14 @@ class Command {
throw
new
\Exception
(
"Sorry, I can't find that task."
);
throw
new
\Exception
(
"Sorry, I can't find that task."
);
}
}
$task
->
$method
(
array_slice
(
$arguments
,
1
));
if
(
method_exists
(
$task
,
$method
))
{
$task
->
$method
(
array_slice
(
$arguments
,
1
));
}
else
{
throw
new
\Exception
(
"Sorry, I can't find that method!"
);
}
}
}
/**
/**
...
@@ -186,4 +193,4 @@ class Command {
...
@@ -186,4 +193,4 @@ class Command {
return
'\\'
.
$prefix
.
Str
::
classify
(
$task
)
.
'_Task'
;
return
'\\'
.
$prefix
.
Str
::
classify
(
$task
)
.
'_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