Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Added handling for missing container/router in AppFactory #403

Merged
merged 2 commits into from
Dec 8, 2016

Conversation

weierophinney
Copy link
Member

AppFactory::create now raises a new MissingDependencyException in either of
the two following scenarios:

  • $container absence, and lack of ServiceManager
  • $router absence, and lack of Router\FastRouteRouter

Note: I was unable to write tests, because both classes are always present in our test suite!

Fixes #352

Unable to test, because both classes are always present in our test
suite!

- One tests for `$container` absence, and lack of `ServiceManager`
- One tests for `$router` absence, and lack of `Router\FastRouteRouter`
- Updated to docheader 0.1.5, and imported regexp from
  feature/programmatic branch.
@weierophinney weierophinney self-assigned this Dec 8, 2016
@weierophinney weierophinney added this to the 1.0.5 milestone Dec 8, 2016
@weierophinney weierophinney merged commit a316ac9 into zendframework:master Dec 8, 2016
weierophinney added a commit that referenced this pull request Dec 8, 2016
weierophinney added a commit that referenced this pull request Dec 8, 2016
Forward port #403

Conflicts:
	composer.json
	composer.lock
@weierophinney weierophinney deleted the hotfix/352 branch December 8, 2016 13:59
weierophinney added a commit that referenced this pull request Dec 8, 2016
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.

1 participant