-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule.php
More file actions
39 lines (34 loc) · 1.25 KB
/
Module.php
File metadata and controls
39 lines (34 loc) · 1.25 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
32
33
34
35
36
37
38
39
<?php
/**
* This file is part of the Bono CMS
*
* Copyright (c) No Global State Lab
*
* For the full copyright and license information, please view
* the license file that was distributed with this source code.
*/
namespace Block;
use Cms\AbstractCmsModule;
use Block\Service\BlockManager;
use Block\Service\SiteService;
use Block\Service\CategoryService;
use Block\Service\CategoryFieldService;
use Block\Service\CategoryRelationService;
final class Module extends AbstractCmsModule
{
/**
* {@inheritDoc}
*/
public function getServiceProviders()
{
$blockMapper = $this->getMapper('/Block/Storage/MySQL/BlockMapper');
$blockManager = new BlockManager($blockMapper);
return array(
'siteService' => new SiteService($blockManager),
'blockManager' => $blockManager,
'categoryService' => new CategoryService($this->getMapper('/Block/Storage/MySQL/CategoryMapper')),
'categoryFieldService' => new CategoryFieldService($this->getMapper('/Block/Storage/MySQL/CategoryFieldMapper')),
'categoryRelationService' => new CategoryRelationService($this->getMapper('/Block/Storage/MySQL/CategoryRelationMapper'))
);
}
}