Proper error message when fixture controller is called without input

before: failed with undefined index PHP error
now: fail with proper error complaining about missing argument.
This commit is contained in:
Carsten Brandt
2014-10-14 15:36:43 +02:00
parent c03ca75135
commit 2bfec326d5

View File

@ -100,8 +100,8 @@ class FixtureController extends Controller
*
* @throws Exception if the specified fixture does not exist.
*/
public function actionLoad()
{
public function actionLoad($fixturesInput)
{
$fixturesInput = func_get_args();
$filtered = $this->filterFixtures($fixturesInput);
$except = $filtered['except'];