Yaf_Application::execute
Exécute une fonction de rappel
&reftitle.description;
public voidYaf_Application::execute
callableentry
stringargs
Cette méthode est habituellement utilisée pour exécuter
Yaf_Application dans un crontab. Le crontab peut aussi utiliser
le mécanisme d'autoloader et de Bootstrap.
&reftitle.parameters;
entry
Une fonction de rappel valide.
args
Paramètres à passer à la fonction de rappel
&reftitle.returnvalues;
&reftitle.examples;
Exemple avec Yaf_Application::execute
array(
"directory" => realpath(dirname(__FILE__)) . "/application",
),
);
/** Yaf_Application */
$application = new Yaf_Application($config);
$application->execute("main", $argc, $argv);
?>
]]>
&example.outputs.similar;