Skip to content

Commit add7ee0

Browse files
committed
pass missing methods to console artisan.
1 parent d18a37a commit add7ee0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Illuminate/Foundation/Artisan.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,16 @@ protected function getArtisan()
7070
return $this->artisan = ConsoleApplication::start($this->app);
7171
}
7272

73+
/**
74+
* Dynamically pass all missing methods to console Artisan.
75+
*
76+
* @param string $method
77+
* @param array $parameters
78+
* @return mixed
79+
*/
80+
public function __call($method, $parameters)
81+
{
82+
return call_user_func_array(array($this->getArtisan(), $method), $parameters);
83+
}
84+
7385
}

0 commit comments

Comments
 (0)