~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Entity/Upgrade.php

  • Committer: Dan Garner
  • Date: 2016-04-05 12:44:24 UTC
  • mfrom: (487.1.67)
  • Revision ID: git-v1:3ee1212b02c722a146a00e094f0ff69f88fb5c7d
Merge pull request #149 from dasgarner/develop

Post 1.8.0-alpha3 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
namespace Xibo\Entity;
10
10
 
11
11
 
 
12
use Slim\Helper\Set;
12
13
use Xibo\Helper\Install;
13
14
use Xibo\Service\ConfigServiceInterface;
14
15
use Xibo\Service\LogServiceInterface;
35
36
    public $action;
36
37
    public $type;
37
38
 
 
39
    /** @var  Set */
 
40
    private $container;
 
41
 
38
42
    /** @var  ConfigServiceInterface */
39
43
    private $config;
40
44
 
42
46
     * Entity constructor.
43
47
     * @param StorageServiceInterface $store
44
48
     * @param LogServiceInterface $log
 
49
     * @param Set $container
45
50
     * @param ConfigServiceInterface $config
46
51
     */
47
 
    public function __construct($store, $log, $config)
 
52
    public function __construct($store, $log, $container, $config)
48
53
    {
49
54
        $this->setCommonDependencies($store, $log);
 
55
        $this->container = $container;
50
56
        $this->config = $config;
51
57
    }
52
58
 
84
90
 
85
91
                $object = new $class();
86
92
                /* @var Step $object */
87
 
                $object->doStep();
 
93
                $object->doStep($this->container);
88
94
 
89
95
                break;
90
96