"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/Config/Loader/FileLoader.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

FileLoader.php  (symfony-4.4.14):FileLoader.php  (symfony-4.4.15)
skipping to change at line 76 skipping to change at line 76
* @param string|string[]|null $exclude Glob patterns to exclude from the import * @param string|string[]|null $exclude Glob patterns to exclude from the import
* *
* @return mixed * @return mixed
* *
* @throws LoaderLoadException * @throws LoaderLoadException
* @throws FileLoaderImportCircularReferenceException * @throws FileLoaderImportCircularReferenceException
* @throws FileLocatorFileNotFoundException * @throws FileLocatorFileNotFoundException
*/ */
public function import($resource, $type = null, $ignoreErrors = false, $sour ceResource = null/*, $exclude = null*/) public function import($resource, $type = null, $ignoreErrors = false, $sour ceResource = null/*, $exclude = null*/)
{ {
if (\func_num_args() < 5 && __CLASS__ !== static::class && 0 !== strpos( static::class, 'Symfony\Component\\') && __CLASS__ !== (new \ReflectionMethod($t his, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUni t\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\Prophe cySubjectInterface) { if (\func_num_args() < 5 && __CLASS__ !== static::class && 0 !== strpos( static::class, 'Symfony\Component\\') && __CLASS__ !== (new \ReflectionMethod($t his, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUni t\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\Prophe cySubjectInterface && !$this instanceof \Mockery\MockInterface) {
@trigger_error(sprintf('The "%s()" method will have a new "$exclude = null" argument in version 5.0, not defining it is deprecated since Symfony 4.4 .', __METHOD__), \E_USER_DEPRECATED); @trigger_error(sprintf('The "%s()" method will have a new "$exclude = null" argument in version 5.0, not defining it is deprecated since Symfony 4.4 .', __METHOD__), \E_USER_DEPRECATED);
} }
$exclude = \func_num_args() >= 5 ? func_get_arg(4) : null; $exclude = \func_num_args() >= 5 ? func_get_arg(4) : null;
if (\is_string($resource) && \strlen($resource) !== $i = strcspn($resour ce, '*?{[')) { if (\is_string($resource) && \strlen($resource) !== $i = strcspn($resour ce, '*?{[')) {
$excluded = []; $excluded = [];
foreach ((array) $exclude as $pattern) { foreach ((array) $exclude as $pattern) {
foreach ($this->glob($pattern, true, $_, false, true) as $path = > $info) { foreach ($this->glob($pattern, true, $_, false, true) as $path = > $info) {
// normalize Windows slashes // normalize Windows slashes
$excluded[str_replace('\\', '/', $path)] = true; $excluded[str_replace('\\', '/', $path)] = true;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)