Addons.php
850 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
32
33
34
35
36
37
38
39
40
<?php
namespace AC\Admin\PageFactory;
use AC\Admin;
use AC\Admin\MenuFactoryInterface;
use AC\Admin\Page;
use AC\Admin\PageFactoryInterface;
use AC\Asset\Location;
use AC\IntegrationRepository;
class Addons implements PageFactoryInterface
{
protected $location;
protected $integrations;
protected $menu_factory;
public function __construct(
Location\Absolute $location,
IntegrationRepository $integrations,
MenuFactoryInterface $menu_factory
) {
$this->location = $location;
$this->integrations = $integrations;
$this->menu_factory = $menu_factory;
}
public function create()
{
return new Page\Addons(
$this->location,
$this->integrations,
new Admin\View\Menu($this->menu_factory->create('addons'))
);
}
}