-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhpMobRestBundle.php
55 lines (47 loc) · 1.12 KB
/
PhpMobRestBundle.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
* This file is part of the PhpMob package.
*
* (c) Ishmael Doss <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace PhpMob\RestBundle;
use PhpMob\RestBundle\DependencyInjection\PhpMobRestExtension;
use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
/**
* @author Ishmael Doss <[email protected]>
*/
class PhpMobRestBundle extends AbstractResourceBundle
{
public function __construct()
{
$this->extension = new PhpMobRestExtension();
}
/**
* {@inheritdoc}
*/
public function getSupportedDrivers(): array
{
return [
SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
];
}
/**
* {@inheritdoc}
*/
protected function getModelNamespace(): ?string
{
return 'PhpMob\RestBundle\Model';
}
/**
* {@inheritdoc}
*/
protected function getBundlePrefix(): string
{
return $this->extension->getAlias();
}
}