-
Notifications
You must be signed in to change notification settings - Fork 0
/
Factory.php
46 lines (40 loc) · 1.23 KB
/
Factory.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
<?php
/**
* @package vdm/data
*
* @created 4th September, 2022
* @author Llewellyn van der Merwe <https://dev.vdm.io>
* @git VDM Data Library <https://git.vdm.dev/joomla/vdm-data>
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace VastDevelopmentMethod\Joomla\Data;
use Joomla\DI\Container;
use VastDevelopmentMethod\Joomla\Service\Table;
use VastDevelopmentMethod\Joomla\Service\Database;
use VastDevelopmentMethod\Joomla\Service\Model;
use VastDevelopmentMethod\Joomla\Service\Data;
use VastDevelopmentMethod\Joomla\Interfaces\FactoryInterface;
use VastDevelopmentMethod\Joomla\Abstraction\Factory as ExtendingFactory;
/**
* Data Factory
*
* @since 3.2.2
*/
abstract class Factory extends ExtendingFactory implements FactoryInterface
{
/**
* Create a container object
*
* @return Container
* @since 3.2.2
*/
protected static function createContainer(): Container
{
return (new Container())
->registerServiceProvider(new Table())
->registerServiceProvider(new Database())
->registerServiceProvider(new Model())
->registerServiceProvider(new Data());
}
}