Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Eliminate usage of Zend_Config from Magento 2 Open Source #71 #103

Merged
merged 1 commit into from
Apr 6, 2018

Conversation

knowj
Copy link
Contributor

@knowj knowj commented Mar 24, 2018

Remove all references of Zend_Config

Removed all instances/references to Zend_Config within the Magento 2 core. The approach with this is to inherit the docblocks in the files where it still exists.

The complete removal of the project dependency on Zend Framework 1 will require the removal of Zend_Validate which is currently in PR:
#82

The changes here aren't reflected in issue 82

Description

Remove import of Zend_Config in oAuth keylength validator and inherit previously copy/pasted Docblock
Import previously copy/pasted docblock from email address validator

Fixed Issues (if relevant)

  1. Eliminate usage of Zend_Config from Magento 2 Open Source #71: Eliminate usage of Zend_Config from Magento 2 Open Source Eliminate usage of Zend_Config from Magento 2 Open Source #71

Manual testing scenarios

No functionality changed import of Zend_Config was purely for usage in Docblock

Contribution checklist

  • [X ] Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@@ -39,7 +39,7 @@ class KeyLength extends \Zend_Validate_StringLength
* Default encoding is set to utf-8 if none provided
* New option name added to allow adding key name in validation error messages
*
* @param integer|array|\Zend_Config $options
* @param @inheritDoc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be just @inheritdoc, no @param and all lower case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bbatsche That's what happens when you tip over the ballmer peak on a contribution day. Resolved.

@bbatsche bbatsche self-assigned this Mar 28, 2018
@knowj knowj force-pushed the bug/72-zend-config branch from b21971b to 97bead2 Compare March 29, 2018 13:43
@bbatsche
Copy link
Contributor

Single build failure in Travis is not related to this change and should be merged anyways

@buskamuza buskamuza merged commit 97bead2 into magento-engcom:libs-upgrade Apr 6, 2018
buskamuza added a commit that referenced this pull request Apr 6, 2018
Eliminate usage of Zend_Config from Magento 2 Open Source #71
magento-engcom-team added a commit that referenced this pull request Jul 20, 2018
 - Merge Pull Request magento/graphql-ce#103 from magento/graphql-ce:25_hide_product_attributes
 - Merged commits:
   1. 7f9d1bc
   2. 8f92ef4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants