-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
31 lines (26 loc) · 1.04 KB
/
bootstrap.php
File metadata and controls
31 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use Foolz\FoolFrame\Model\Autoloader;
use Foolz\FoolFrame\Model\Context;
use Foolz\Plugin\Event;
class HHVM_RT
{
public function run()
{
Event::forge('Foolz\Plugin\Plugin::execute#foolz/foolfuuka-plugin-rt-search')
->setCall(function ($result) {
/* @var Context $context */
$context = $result->getParam('context');
/** @var Autoloader $autoloader */
$autoloader = $context->getService('autoloader');
$autoloader->addClassMap([
'Foolz\FoolFuuka\Plugins\RtSearch\Console\Console' => __DIR__ . '/classes/console/console.php'
]);
Event::forge('Foolz\FoolFrame\Model\Context::handleConsole#obj.app')
->setCall(function ($result) use ($context) {
$result->getParam('application')
->add(new \Foolz\FoolFuuka\Plugins\RtSearch\Console\Console($context));
});;
});
}
}
(new HHVM_RT())->run();