Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Staging.php
Go to the documentation of this file.
1 <?php
11 
13 {
19  protected $_theme;
20 
24  protected $_themeCopyService;
25 
30  public function __construct(
31  \Magento\Framework\View\Design\ThemeInterface $theme,
32  \Magento\Theme\Model\CopyService $themeCopyService
33  ) {
34  $this->_theme = $theme;
35  $this->_themeCopyService = $themeCopyService;
36  }
37 
43  public function updateFromStagingTheme()
44  {
45  $this->_themeCopyService->copy($this->_theme, $this->_theme->getParentTheme());
46  return $this;
47  }
48 }
__construct(\Magento\Framework\View\Design\ThemeInterface $theme, \Magento\Theme\Model\CopyService $themeCopyService)
Definition: Staging.php:30
$theme