Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix Base Form (1.x)#564

Merged
Danielss89 merged 6 commits into
ZF-Commons:1.xfrom
claytondaley:fix-base-form-1.x
Mar 14, 2015
Merged

Fix Base Form (1.x)#564
Danielss89 merged 6 commits into
ZF-Commons:1.xfrom
claytondaley:fix-base-form-1.x

Conversation

@claytondaley

Copy link
Copy Markdown
Contributor

The Base constructor currently has a dependency on a function (getRegistrationOptions) only available in child class Register. This patch moves that call into the constructor for Register so Base can be sub-classed independently.

@claytondaley

Copy link
Copy Markdown
Contributor Author

The failing tests appear to be Registration stuff that shouldn't be in Base anyway. Obviously, this improves the usability of 1.x while 2.x is still in flux (and until key projects like ZfcUserAdmin are upgraded to the 2.x branch).

@Danielss89

Copy link
Copy Markdown
Member

Can you fix the tests? :)

@claytondaley

Copy link
Copy Markdown
Contributor Author

... apparently. There's a first for everything :)

Feel free to review, but this was all relocating of code (plus eliminating one duplicate test) so I'm reasonably confident that I preserved what needed preserved.

@Danielss89 Danielss89 added this to the 1.3.0 milestone Mar 14, 2015
Danielss89 added a commit that referenced this pull request Mar 14, 2015
@Danielss89 Danielss89 merged commit 9392a4b into ZF-Commons:1.x Mar 14, 2015
@claytondaley claytondaley deleted the fix-base-form-1.x branch March 15, 2015 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants