PHP 8.6.0 Beta 3 is available for testing

Yaf_Dispatcher::getInstance

(Yaf >=1.0.0)

Yaf_Dispatcher::getInstanceRetrieve the dispatcher instance

Açıklama

public static function Yaf_Dispatcher::getInstance(): ?Yaf_Dispatcher

Retrieve the single Yaf_Dispatcher instance.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

The Yaf_Dispatcher instance, or null if no Yaf_Application has been initialized yet.

Örnekler

Örnek 1 Yaf_Dispatcher::getInstance() example

<?php
$app = new Yaf_Application(dirname(__FILE__) . "/conf/application.ini");

$dispatcher = Yaf_Dispatcher::getInstance();

var_dump($dispatcher === Yaf_Dispatcher::getInstance());
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

bool(true)

Ayrıca Bakınız

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top