-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBarcodeScannerApp.php
More file actions
31 lines (26 loc) · 995 Bytes
/
BarcodeScannerApp.php
File metadata and controls
31 lines (26 loc) · 995 Bytes
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 exface\BarcodeScanner;
use exface\Core\Interfaces\InstallerInterface;
use exface\Core\Facades\AbstractHttpFacade\HttpFacadeInstaller;
use exface\Core\CommonLogic\Model\App;
use exface\Core\Factories\FacadeFactory;
use exface\BarcodeScanner\Facades\HttpBarcodeFacade;
class BarcodeScannerApp extends App
{
/**
* {@inheritdoc}
*
* An additional installer is included to condigure the routing for the HTTP facades.
*
* @see App::getInstaller($injected_installer)
*/
public function getInstaller(InstallerInterface $injected_installer = null)
{
$installer = parent::getInstaller($injected_installer);
// Routing installer
$tplInstaller = new HttpFacadeInstaller($this->getSelector());
$tplInstaller->setFacade(FacadeFactory::createFromString(HttpBarcodeFacade::class, $this->getWorkbench()));
$installer->addInstaller($tplInstaller);
return $installer;
}
}