
Yaf_Dispatcher::__construct 메서드의 파라미터는 다음과 같은 역할을 합니다.
- application: Yaf_Application 객체를 전달하여 디스패처와 어플리케이션을 연결합니다.
- config: 디스패처의 기본 설정을 전달합니다.
- options: 디스패처의 옵션을 전달합니다.
Yaf_Dispatcher::__construct 메서드의 파라미터를 설정하는 방법은 다음과 같습니다.
#hostingforum.kr
php
$dispatcher = new Yaf_Dispatcher();
$dispatcher->setApplication($application);
$dispatcher->setConfig($config);
$dispatcher->setOptions($options);
또는 다음과 같이 한 번에 설정할 수 있습니다.
#hostingforum.kr
php
$dispatcher = new Yaf_Dispatcher($application, $config, $options);
2025-07-15 16:42