-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from magento-tango/MAGETWO-41080
[Tango] S57 - Support Tool, Glob Patterns, Bug Fixes
- Loading branch information
Showing
23 changed files
with
675 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
lib/internal/Magento/Framework/View/File/AbstractCollector.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Framework\View\File; | ||
|
||
use Magento\Framework\Filesystem; | ||
use Magento\Framework\View\File\Factory as FileFactory; | ||
use Magento\Framework\View\Helper\PathPattern as PathPatternHelper; | ||
use Magento\Framework\App\Filesystem\DirectoryList; | ||
|
||
/** | ||
* Abstract file collector | ||
*/ | ||
abstract class AbstractCollector implements CollectorInterface | ||
{ | ||
/** | ||
* @var \Magento\Framework\Filesystem\Directory\ReadInterface | ||
*/ | ||
protected $directory; | ||
|
||
/** | ||
* @var \Magento\Framework\View\File\Factory | ||
*/ | ||
protected $fileFactory; | ||
|
||
/** | ||
* @var \Magento\Framework\View\Helper\PathPattern | ||
*/ | ||
protected $pathPatternHelper; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $subDir; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param \Magento\Framework\Filesystem $filesystem | ||
* @param \Magento\Framework\View\File\Factory $fileFactory | ||
* @param \Magento\Framework\View\Helper\PathPattern $pathPatternHelper | ||
* @param string $subDir | ||
*/ | ||
public function __construct( | ||
Filesystem $filesystem, | ||
FileFactory $fileFactory, | ||
PathPatternHelper $pathPatternHelper, | ||
$subDir = '' | ||
) { | ||
$this->directory = $filesystem->getDirectoryRead($this->getScopeDirectory()); | ||
$this->fileFactory = $fileFactory; | ||
$this->pathPatternHelper = $pathPatternHelper; | ||
$this->subDir = $subDir ? $subDir . '/' : ''; | ||
} | ||
|
||
/** | ||
* Get scope directory of this file collector | ||
* | ||
* @return string | ||
*/ | ||
protected function getScopeDirectory() | ||
{ | ||
return DirectoryList::MODULES; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.