Yaf_Application
PHP Manual

Yaf_Application::execute

(PECL yaf >=1.0.0)

Yaf_Application::executeExecute a callback

説明

public void Yaf_Application::execute ( callable $entry , string $... )

This method is typically used to run Yaf_Application in a crontab work. Make the crontab work can also use the autoloader and Bootstrap mechanism.

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

entry

...

返り値

例1 Yaf_Application::execute()example

<?php
function main($argc$argv) {
}

$config = array(
    
"application" => array(
        
"directory" => realpath(dirname(__FILE__)) . "/application",
    ),
);

/** Yaf_Application */
$application = new Yaf_Application($config);
$application->execute("main"$argc,  $argv);
?>

上の例の出力は、 たとえば以下のようになります。


Yaf_Application
PHP Manual