Skip to content

Commit 4dd174e

Browse files
author
Emmanuel ROY
committed
update bin console command
1 parent 58f6adb commit 4dd174e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

console/bin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
require dirname(__DIR__) . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php";
1414
\MVC\Component\Debug::setPHPvalues();
1515

16-
function appel_cmd($class,$static_method){
16+
function appel_cmd($class,$static_method,$argv){
1717
if(method_exists($class,$static_method)) {
1818

1919
//récupération des arguments de la commande pour passage en paramètre de la méthode
@@ -56,7 +56,7 @@ function appel_cmd($class,$static_method){
5656

5757
if(isset($option[1]) && $option[1] !== '') {
5858
$static_method = $option[1];
59-
appel_cmd($class,$static_method);
59+
appel_cmd($class,$static_method,$argv);
6060

6161
}else{
6262
$static_method = 'help';
@@ -69,7 +69,7 @@ function appel_cmd($class,$static_method){
6969

7070
if(isset($option[1]) && $option[1] !== '') {
7171
$static_method = $option[1];
72-
appel_cmd($class,$static_method);
72+
appel_cmd($class,$static_method,$argv);
7373

7474
}else{
7575
$static_method = 'help';
@@ -82,7 +82,7 @@ function appel_cmd($class,$static_method){
8282

8383
if(isset($option[1]) && $option[1] !== '') {
8484
$static_method = $option[1];
85-
appel_cmd($class,$static_method);
85+
appel_cmd($class,$static_method,$argv);
8686

8787
}else{
8888
$static_method = 'help';

0 commit comments

Comments
 (0)