-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laminas di and servicemanager updated to PHP 8 compatible version #31854
Merged
magento-cicd2
merged 10 commits into
magento:php8-develop
from
ProkopovVitaliy:31173-laminas-di-dependency
Mar 9, 2021
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f2e70de
updated laminas/laminas-di module
ProkopovVitaliy 967762f
Merge branch 'php8-develop' into 31173-laminas-di-dependency
ProkopovVitaliy 81be920
Merge branch 'php8-develop' into 31173-laminas-di-dependency
ProkopovVitaliy 87ca953
Merge branch 'php8-develop' of github.com:magento-commerce/magento2ce…
sivaschenko 2dd88ef
magento/magento2#31346: Updated laminas/laminas-servicemanager
sivaschenko 98925c2
magento/magento2#31783: Updated laminas-mvc
sivaschenko 4416bc1
magento/magento2#31854: Customized laminas-di to resolve only require…
sivaschenko 53f2905
magento/magento2#31854: Removed optional parameters types from classe…
sivaschenko 8a6d064
magento/magento2#31854: Utilized Magento DI for loading types Laminas…
sivaschenko c9f729b
magento/magento2#31783: Added laminas-mvc-console dependency
sivaschenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
/** | ||
* List of enabled modules for this application. | ||
* | ||
* This should be an array of module namespaces used in the application. | ||
*/ | ||
return [ | ||
'Magento\Setup', | ||
'Laminas\Db', | ||
'Laminas\Di', | ||
'Laminas\Form', | ||
'Laminas\Filter', | ||
'Laminas\Hydrator', | ||
'Laminas\I18n', | ||
'Laminas\InputFilter', | ||
'Laminas\Log', | ||
'Laminas\Mail', | ||
'Laminas\Router', | ||
'Laminas\Serializer', | ||
'Laminas\Session', | ||
'Laminas\Validator', | ||
'Laminas\Mvc\Console' | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,7 +155,7 @@ function () use ($input, $output) { | |
$output, | ||
false | ||
); | ||
|
||
return $returnValue; | ||
} | ||
|
||
|
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,26 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\Setup\Di; | ||
|
||
use Interop\Container\ContainerInterface; | ||
use Laminas\ServiceManager\Factory\FactoryInterface; | ||
use Magento\Framework\App\ObjectManager; | ||
|
||
/** | ||
* Instantiates the type via Magento object manager | ||
*/ | ||
class MagentoDiFactory implements FactoryInterface | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) | ||
{ | ||
return ObjectManager::getInstance()->get($requestedName); | ||
} | ||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that we may just replace this method with
__invoke
instead of extend the class by the new method.@sivaschenko please, correct me if I'm not right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to keep the existing method for backward compatibility purposes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but it's setup sources. I'm not sure that someone extends or customizes the setup process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are probably right