File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
setup/src/Magento/Setup/Model Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \App \Filesystem \DirectoryList ;
12
12
use Magento \Framework \Filesystem ;
13
13
use Magento \Framework \Composer \MagentoComposerApplicationFactory ;
14
- use Magento \Setup \Model \DateTime \DateTimeProvider ;
15
14
16
15
/**
17
16
* Class UpdatePackagesCache manages information about available for update packages though the cache file.
@@ -58,17 +57,18 @@ class UpdatePackagesCache
58
57
* @param MagentoComposerApplicationFactory $applicationFactory
59
58
* @param \Magento\Framework\Filesystem $filesystem
60
59
* @param ComposerInformation $composerInformation
61
- * @param DateTimeProvider $dateTimeProvider
60
+ * @param ObjectManagerProvider $objectManagerProvider
62
61
*/
63
62
public function __construct (
64
63
MagentoComposerApplicationFactory $ applicationFactory ,
65
64
Filesystem $ filesystem ,
66
65
ComposerInformation $ composerInformation ,
67
- DateTimeProvider $ dateTimeProvider
66
+ ObjectManagerProvider $ objectManagerProvider
68
67
) {
69
68
$ this ->application = $ applicationFactory ->create ();
70
69
$ this ->directory = $ filesystem ->getDirectoryWrite (DirectoryList::VAR_DIR );
71
- $ this ->dateTime = $ dateTimeProvider ->get ();
70
+ $ this ->dateTime = $ objectManagerProvider ->get ()
71
+ ->get ('Magento\Setup\Model\DateTime\DateTimeProvider ' )->get ();
72
72
$ this ->composerInformation = $ composerInformation ;
73
73
}
74
74
You can’t perform that action at this time.
0 commit comments