В index.php
файле Kohana, есть пункт у меня есть два вопроса:Kohana `index.php` метод цепочки и миньонов?
if (PHP_SAPI == 'cli') // Try and load minion
{
class_exists('Minion_Task') OR die('Please enable the Minion module for CLI support.');
set_exception_handler(array('Minion_Exception', 'handler'));
Minion_Task::factory(Minion_CLI::options())->execute();
}
else
{
/**
* Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
* If no source is specified, the URI will be automatically detected.
*/
echo Request::factory(TRUE, array(), FALSE)
->execute()
->send_headers(TRUE)
->body();
}
1), что является minion
? 2) Что означает следующее?
->foo()
->bar()
->...etx
- это только способ цепочки?
1. Миньон - последователь, преданный служить своему хозяину! 2. Это функции внутри объекта, возможно, класса. – adeneo