Skip to content
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

Migrates and simplifies factories #227

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

froschdesign
Copy link
Contributor

Reference for the form view helper factory:

…if two services share the same creation pattern, you could attach the same factory…

https://docs.laminas.dev/laminas-servicemanager/configuring-the-service-manager/#mapping-multiple-service-to-the-same-factory

And the TwbsHelper\Options\Factory\ModuleOptionsFactory avoids the servicemanager interface to allow other DI containers in the future, I am thinking of Mezzio here.

@froschdesign froschdesign force-pushed the hotfix/migrate-factories branch 2 times, most recently from 75347b6 to 9cc537c Compare October 8, 2021 09:03
@froschdesign froschdesign force-pushed the hotfix/migrate-factories branch from 9cc537c to a9b9dcb Compare October 8, 2021 09:06
@codecov
Copy link

codecov bot commented Oct 8, 2021

Codecov Report

Merging #227 (a9b9dcb) into master (ee0922c) will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #227      +/-   ##
============================================
+ Coverage     88.42%   88.54%   +0.11%     
+ Complexity     1157     1148       -9     
============================================
  Files            63       60       -3     
  Lines          3146     3126      -20     
============================================
- Hits           2782     2768      -14     
+ Misses          364      358       -6     
Impacted Files Coverage Δ
...m/View/Helper/Factory/FormModuleOptionsFactory.php 100.00% <100.00%> (ø)
...wbsHelper/Options/Factory/ModuleOptionsFactory.php 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee0922c...a9b9dcb. Read the comment docs.

$requestedName,
?array $options = null
) {
/** @var ModuleOptions $options */
Copy link
Owner

Choose a reason for hiding this comment

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

Wrong variable name

@neilime neilime merged commit 43c80a4 into neilime:master Oct 8, 2021
@neilime
Copy link
Owner

neilime commented Oct 8, 2021

Nice refactoring thank you @froschdesign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants