-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathIDEApp.php
31 lines (28 loc) · 855 Bytes
/
IDEApp.php
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
namespace axenox\IDE;
use exface\Core\Interfaces\InstallerInterface;
use exface\Core\CommonLogic\Model\App;
use exface\Core\Facades\AbstractHttpFacade\HttpFacadeInstaller;
use exface\Core\Factories\FacadeFactory;
use axenox\IDE\Facades\IDEFacade;
/**
*
* @author Andrej Kabachnik
*
*/
class IDEApp extends App
{
/**
* {@inheritdoc}
* @see App::getInstaller($injected_installer)
*/
public function getInstaller(InstallerInterface $installer = null)
{
$container = parent::getInstaller($installer);
// IDE facade
$facadeInstaller = new HttpFacadeInstaller($this->getSelector());
$facadeInstaller->setFacade(FacadeFactory::createFromString(IDEFacade::class, $this->getWorkbench()));
$container->addInstaller($facadeInstaller);
return $container;
}
}