Skip to content

Feature/mvc sm viewmanager #34

Closed
wants to merge 156 commits into from
@weierophinney
  • Created ViewManager class for managing creation and composition of various events and objects in the view layer
    • Registers a number of them as services when done
  • Application pulls ViewManager from service manager and attaches it to events
  • ViewManager has an onBootstrap listener that attaches to the bootstrap event at high (10000) priority
Denis Arh and others added some commits Apr 14, 2012
Denis Arh Fixed basic auth in Curl adapter for HTTP client 369396e
Denis Arh Merge branch 'master' of git://github.com/zendframework/zf2 d6ee894
Denis Arh Merge branch 'master' of git://github.com/zendframework/zf2 c11d0f1
Denis Arh Merge branch 'master' of git://github.com/zendframework/zf2 78a70ad
Denis Arh Undo basic auth workaround for Curl adapter for HTTP client + added t…
…ests for authentication
f406054
@marc-mabe marc-mabe Cache: missing item behavior changes 2a2b77b
@marc-mabe marc-mabe Merge branch 'master' of git://github.com/zendframework/zf2 into cach…
…e_missingItems

Conflicts:
	library/Zend/Cache/Storage/Adapter/AbstractAdapter.php
	tests/Zend/Cache/Storage/Adapter/CommonAdapterTest.php
689e5bd
@marc-mabe marc-mabe Cache: added umask test and small code format 085492e
@marc-mabe marc-mabe filesystem adapter: split logic to create the directory structure int…
…o an own method
210d1a6
@prolic prolic fixed exceptions in Zend\Search 02cdfa0
@ralphschindler Added Sql accessor to TableGateway 390c063
@Maks3w Maks3w Remove uses of Loader:loadClass()
Not necessary with PHP 5.3 and Autoload.
6d6cce3
@EvanDotPro EvanDotPro Merge remote-tracking branch 'ralphschindler/feature/tablegateway-acc…
…essor-for-sql'
e904d39
@weierophinney weierophinney Merge branch 'hotfix/loader-removal' 66104b7
@Maks3w Maks3w [Composer] Keywords suggestion d5140f3
@prolic prolic Merge branch 'master' of git://github.com/zendframework/zf2 into search 535a6d5
@mwillbanks mwillbanks added dbtablegateway and updated cache for some psr-0 items and fixed…
… a unit test botch
7712781
@Bilge Bilge Fix doc block typo. d642d77
@mishak87 mishak87 Typo in comment 8be9fc2
@Maks3w Maks3w [Cloud] Mark some incomplete tests. 68a1d6c
@Maks3w Maks3w [Json] Change unit test.
The casting from string to float using (float) is not locale aware.

Probably this function could be refactored implementing something like this
http://www.php.net/manual/en/function.floatval.php#92563
465e6d8
@matuszeman matuszeman SharedEventManager type preference e0589f6
@matuszeman matuszeman Merge branch 'master' of https://github.com/zendframework/zf2 into qu…
…ickfix/sharedem-type-preference
0aa2f0d
@sasezaki sasezaki renamed Exception -> ExceptionInterface in ServiceManager e2637f3
@Maks3w Maks3w [Loader] Cross platform adaptions 58ece26
@weierophinney weierophinney [#1185] Remove "zend" keyword
- Already in description
c1eed8f
@weierophinney weierophinney Merge branch 'search-renamed-interfaces' of https://github.com/prolic…
…/zf2 into hotfix/search-exceptions
7c346dd
@weierophinney weierophinney Merge branch 'bugfix/zend-session-db-adapter-and-fixes' of https://gi…
…thub.com/mwillbanks/zf2 into feature/session-save-dbtablegateway
c59fce3
@weierophinney weierophinney Merge branch 'master' of https://github.com/BilgeXA/zf2 ecbe283
@weierophinney weierophinney Merge branch 'patch-1' of https://github.com/mishak87/zf2 d642af4
@weierophinney weierophinney Merge branch 'quickfix/sharedem-type-preference' of https://github.co… bbbb2e8
@weierophinney weierophinney Merge branch 'servicemanger-exception-interface-rename' of https://gi…
…thub.com/sasezaki/zf2 into hotfix/servicemanager-exceptions
70ea14e
@Maks3w Maks3w [Validator] Various test changes
* Remove obsolete tests.
* Mark incomplete tests.
4094bae
@adamlundrigan adamlundrigan [ZF-4520] Reorder Zend\Http\Header\SetCookie constructor arguments to…
… match PHP setcookie()
d239eb1
@Maks3w Maks3w [Validator] Improve Magic Mime Exceptions and Tests
As of PHP >= 5.3.11 and >= 5.4.1 the magic database format has changed.
http://doc.php.net/downloads/pdf/split/de/File-Information.pdf
d6babb2
Duccio Gasparri [ZF2-268] AmazonS3 service broken and other problems between
Service\Amazon\S3\S3 and Http\Client

http://framework.zend.com/issues/browse/ZF2-268


* substituted the $client->send()
* added appropriate ['Content-Type'] header
* fixed the call to the addSignature method
* substituted in the whole file the removed Request::getStatus() with
the new Request::getStatusCode()
* replaced in the whole file the removed Request::getHeader() method
with the Request->headers()->get()
* changed the static call to addSignature() into $this->addSignature(),
and changed its return value

This commit completely replaces pull #1173
zendframework#1173

Change-Id: Ib576245d3ee0295dc24fca6bcd77f3737dd9354b
3e2bf5b
@Maks3w Maks3w [Validator] Change phpversion() to PHP_VERSION bb45872
@weierophinney weierophinney Merge branch 'master' of https://github.com/dgasparri/zf2-testserver …
…into hotfix/zf2-268
abf7335
@Maks3w Maks3w Erase @uses statements
Since PHP 5.3 the 'use' statement is used for declare dependencies.
331805d
@weierophinney weierophinney [#1194] CS cleanup
- Added imports for types tested in the code
- Fixed a number of control structures to add braces
f37a98e
@weierophinney weierophinney Merge branch 'hotfix/unit-tests' of https://github.com/Maks3w/zf2 int…
…o hotfix/tests-skipped
739d798
@weierophinney weierophinney [#1193] Removed unnecessary ZF1 PHPUnit artifacts 05b9e6f
@weierophinney weierophinney Merge branch 'hotfix/code-cleanup' of https://github.com/Maks3w/zf2 i…
…nto hotfix/uses-annotations
94bd4d8
@weierophinney weierophinney Cleanup assertion
- Trim contents to ensure no trailing EOL characters in expected string
  or returned string
e61b311
@prolic prolic [zen-27] Renamed interfaces in Zend\InfoCard dde7e64
@marc-mabe marc-mabe Merge branch 'master' of git://github.com/zendframework/zf2 into cach…
…e_missingItems
6cdb4a3
@prolic prolic [zen-27] Renamed interfaces in Zend\Http dcb630e
@prolic prolic [zen-27] Renamed interfaces in Zend\Http ee0fd96
@prolic prolic [zen-27] Renamed interfaces in Zend\Http 5480b1d
@prolic prolic fixed exceptions, fixed phpdoc 12d26b1
@prolic prolic [zen-27] Renamed interfaces in Zend\Http bbe6390
@prolic prolic [zen-27] Renamed interfaces in Zend\Http 8df32ee
@prolic prolic fixed exceptions, fixed phpdoc 1910745
@Maks3w Maks3w [Http] Minor fixes 8ac462e
@Maks3w Maks3w [zen-27] Renamed interfaces in Zend\Http
Fix Http references
d73321d
@weierophinney weierophinney [zen-27][#1197] Fix assertion
- test against Adapter\AdapterInterface, not Adapter
e92282d
@prolic prolic [zen-27] Renamed interfaces in Zend\Feed bd8e205
@prolic prolic removed duplicate 8bfa050
@prolic prolic [zen-27] Renamed interfaces in Zend\Feed 516ddb6
@prolic prolic [zen-27] Renamed interfaces in Zend\Feed fbed45f
@prolic prolic [zen-27] Renamed interfaces in Zend\Markup efb85eb
@prolic prolic removed old files 5e56399
@prolic prolic removed old files 0144d9a
@marc-mabe marc-mabe Updated result values in cases of catched exceptions aeeddaf
@marc-mabe marc-mabe updated docblocks 0b2f838
@Maks3w Maks3w [Config] Remove uses of Zend\Config\Config in favor of Traversable 914a162
@marc-mabe marc-mabe Now the WinCache adapter follows the new API 71f83ba
@marc-mabe marc-mabe removed no longer needed ItemNotFoundException 1764541
@marc-mabe marc-mabe removed no longer needed option 'ignore_missing_items' b116607
@marc-mabe marc-mabe removed no longer needed LockedException fabc135
@Maks3w Maks3w [Config] Fix some mistakes cca016e
@Maks3w Maks3w [Config] Fix some mistakes 4fb00d2
@Maks3w Maks3w [Tests] Rename phpunit.xml to phpunit.xml.dist
This change allow customize PHPUnit's configuration locally.
db40b9f
@Maks3w Maks3w [Tests] Update Travis script c80ee20
@Maks3w Maks3w [Amazon] Add S3 Test
This test use mockable objects to verify the implementation of S3::getBuckets()
af2ca85
@Maks3w Maks3w [Tests] Removed unnecessary ZF1 PHPUnit artifacts 584279e
@Bilge Bilge Added fluent interface. 634fab0
@ralphschindler Zend\Db\Sql
* Added "literal" support to expressions and Sql processing of expressions
* Completed the Expression Tests
Fixes jira issue @ZF2-195
36e30cf
@weierophinney weierophinney Merge branch 'http-renamed-interfaces' of https://github.com/prolic/z…
… into feature/zen27-http
c80328d
@weierophinney weierophinney [zen-27][#1089] Fix test error
- Cannot pass null to Zend\GData\App\HttpException::setResponse()
de9360c
@weierophinney weierophinney [zen-27][#1089] Fix WindowsAzure test failures
- Fixed code that was broken due to interface changes
8682983
@weierophinney weierophinney Merge branch 'markup-renamed-interfaces' of https://github.com/prolic…
…/zf2 into feature/zen27-markup
bd4a1fd
@weierophinney weierophinney Merge branch 'feed-renamed-interfaces' of https://github.com/prolic/z…
… into feature/zen27-feed
137cb75
@weierophinney weierophinney [zen-27][#1198] travis update
- Remove Zend\Feed from skipped components list
2a8bfdd
@weierophinney weierophinney Merge branch 'hotfix/config-dependencies' of https://github.com/Maks3…
…w/zf2 into feature/config-hinting-removal

Conflicts:
	library/Zend/Feed/PubSubHubbub/AbstractCallbackInterface.php
	library/Zend/Feed/PubSubHubbub/Publisher.php
	library/Zend/Feed/PubSubHubbub/Subscriber.php
	library/Zend/Http/Client.php
	library/Zend/Http/Client/Adapter/Curl.php
	library/Zend/Http/Client/Adapter/Socket.php
	library/Zend/Http/Client/Adapter/Test.php
	library/Zend/Markup/Parser/Bbcode.php
	library/Zend/Markup/Parser/ParserInterface.php
	library/Zend/Markup/Renderer/AbstractRenderer.php
	library/Zend/Markup/Renderer/Html.php
	library/Zend/Service/Twitter/Twitter.php
25d9229
@weierophinney weierophinney [zen-27][#1199] Fix failing Barcode test
- Test failure was due to passing un-typed object to method with
  typehint; removed test
dc8068e
@weierophinney weierophinney [#1199] Allow testing barcode
- also changed tested-components to merely list "Zend\Feed", so all of feed is
  executed
da9f311
@weierophinney weierophinney [zen-27][#1199] Fix failing subscriber test
- s/setConfig/setOptions/ in test
1b3ebe5
@weierophinney weierophinney [#1199] fix Delicious exception
- Fixed inheritance so it at least works
ab059c2
@weierophinney weierophinney [#1199] Fix DeveloperGarden exception inheritance
- Quick fix to allow it to work
37ae2c2
@weierophinney weierophinney [zen-27][#1199] fix ReCaptcha params functionality
- s/$options/$params/
- re-worked test for params and throwing of exception on bad params
d7dc456
@weierophinney weierophinney [zen-27][#1199] Fix Translator tests
- Fixes log setup and usage in tests and code for Translator
- Re-enabled Translator tests, as they now appear to work
0b0c8b8
@weierophinney weierophinney Merge branch 'cache_itemNotFound' of https://github.com/marc-mabe/zf2…
…into feature/cache-not_found-behavior
610e9fa
@weierophinney weierophinney Merge branch 'feature/s3-tests' of https://github.com/Maks3w/zf2 into…
… feature/amazon-s3-bucket-tests
a613bb0
@weierophinney weierophinney Merge branch 'hotfix/remove-old-phpunit-artifacts' of https://github.…
…com/Maks3w/zf2 into feature/test-cleanup
914b512
@weierophinney weierophinney Merge branch 'master' of https://github.com/BilgeXA/zf2 into feature/…
…di-fluent-interface
fdf6440
@weierophinney weierophinney Merge branch 'feature/db-sql-expression-noquote' of https://github.co…
…m/ralphschindler/zf2 into feature/db-sql-literals
8484671
@weierophinney weierophinney Merge branch 'hotfix/rename-phpunit-configuration' of https://github.… 4667540
@weierophinney weierophinney [#1200] Fix paginator cache usage
- Due to #1200, had to change how Paginator tests for a cache hit
a7f66d4
@ralphschindler Zend\Db: Fixed the IN predicate to use a dynamic specification
Fixes jira ZF2-287
2e12189
@prolic prolic [zen-27] Renamed interfaces in Zend\Json 9477a03
@ralphschindler Zend\Db: Fixed Sql Operator's constructor to apply non-default values…
… in a strict manner
a6ac879
@prolic prolic [zen-27] Renamed interfaces in Zend\OAuth 2fbad3e
@adamlundrigan adamlundrigan ZF-7586: Zend\Json\Decoder emits fatal error when decoding JSON strin…
…g with empty key
c066aff
@Maks3w Maks3w [Authentication] Change namespaces
Change some namespaces from ZendTest\Auth\ to ZenTest\Authentication\
6e39b4a
@Sliim Sliim Small fix in DSN 8fe08c5
@prolic prolic finished zend\oauth 9cb751c
@SocalNick SocalNick Removing var_dump debugging e968bd6
@prolic prolic renamed interfaces in zend\log 8119baf
@prolic prolic [zen-27] Renamed interfaces in Zend\Pdf 355cd4a
@akrabat akrabat Merge remote-tracking branch 'ralphschindler/hotfix/db-sql-in-express…
…ion'
078abee
@akrabat akrabat Merge remote-tracking branch 'SocialNick/hotfix/classmap-generator-va…
…r-dump'
d6216dd
@akrabat akrabat Merge remote-tracking branch 'Sliim/master' b6c593f
@akrabat akrabat Merge remote-tracking branch 'dlabs/master' 5934389
@akrabat akrabat Merge remote-tracking branch 'Maks3w/hotfix/authentication-namespaces' 1a4dc60
@akrabat akrabat Merge remote-tracking branch 'prolic/log-renamed-interfaces' a757a27
@akrabat akrabat Merge remote-tracking branch 'prolic/pdf-renamed-interfaces' 039b495
@akrabat akrabat Merge remote-tracking branch 'prolic/oauth-renamed-interfaces' af1c598
@akrabat akrabat Merge remote-tracking branch 'adamlundrigan/hotfix/ZF-7586' a6db686
@akrabat akrabat Merge remote-tracking branch 'prolic/json-renamed-interfaces' 6c3029f
@akrabat akrabat Add Locale\Exception\ExceptionInterface to fix breaking tests 448f2bf
@ralphschindler Initial refactoring of MVC for ServiceManager over DI for Zend\Mvc 12e3b96
@ralphschindler Added aliases for DI to consume from ServiceManager in Zend\Mvc 5f3f957
@weierophinney weierophinney Fixed interfaces on which view event listeners are attached de245da
@weierophinney weierophinney New ViewManager class
- Created ViewManager class for managing creation and composition of various
  events and objects in the view layer
  - Registers a number of them as services when done
- Application pulls ViewManager from service manager and attaches it to events
- ViewManager has an onBootstrap listener that attaches to the bootstrap event
  at high (10000) priority
7a8e953
@weierophinney weierophinney Config changes for ViewManager
- Use "view_manager" as base for configuration
- Use array notation for configuration access
7295363
@weierophinney weierophinney Removed Bootstrap from Zend\Mvc
- No longer needed/necessary
dee594f
@weierophinney weierophinney Cleanup in preparation for pull request
- Added docblocks to as many MVC files as possible
- Added getServiceLocator() to ServiceLocatorAwareInterface
- Removed all LocatorAware interfaces in favor of
  ServiceLocatorAwareInterfac
  - Refactored all classes using LocatorAware interfaces to use SLA
- Updated ServiceManagerConfiguration to inject EventManagerAware
  classes
- Refactored DispatchListener to remove goto usage
- Refactored Application to move all event listener attachments into
  bootstrap()
- Use "router" as base key for router configuration; simplifies
  RouteFactory, and allows configuring other aspects of router.
- Small logic cleanups throughout
55c2523
@weierophinney weierophinney Fix controller tests
- Test for ServiceManager\ServiceLocatorAwareInterface, not Di\LocatorAwareInterface
3d93eae
@weierophinney weierophinney Zend\Mvc\Application tests
- Created new set of assertions based on refactored functionality
- Added and refactored original tests that tested workflow
  - 2 I am unable to get working against expectations due to how the
    scoped application controller works
9901f73
@weierophinney weierophinney Fixed Forward plugin tests
- Ensured appropriate location interface was being used in all places
026fa7e
@weierophinney weierophinney Refactored LocatorRegistrationListener
- Uses ServiceManager now
- Updated tests so they now work
7ebe381
@weierophinney weierophinney Refactored OnBootstrap listener
- use the 'application' context, 'bootstrap' event
c92e93e
@weierophinney weierophinney Fix missing import
- Needed AutoloaderFactory
7cd74b3
@weierophinney weierophinney Fix PluginBroker tests
- Code against ServiceLocatorInterface from ServiceManager
1b43a4b
@weierophinney weierophinney [zen-33] update module manager globbing pattern
- Removed ".config" segment, based on IRC meeting decisions
5cc6522
@weierophinney weierophinney [zen-33] Added doctype configuration to ViewManager
- view_manager.doctype now will hint to update the doctype view helper
1fe2a51
@weierophinney weierophinney [zen-33] Fix 404/500 strategies
- Had omitted attaching RouteNotFoundStrategy and ExceptionStrategy to
  event manager; fixed
- Fixed logic in DispatchListener surrounding retrieving controller from
  service locator; don't test for has() so that it can fallback to
  abstract factories if desired.
7f528eb
@ralphschindler Fix for ServiceManager's Di Integration's before/after usage
Addition of nested configuration of controllers in ControllerLoader
32e4f07
@weierophinney weierophinney [zen-33] Seed View HelperBroker with ServiceManager 88f6b28
@weierophinney weierophinney [zen-33] pull from locator only if present
- PluginBroker should only pull from the locator if the class is defined
  on the locator
de57ed2
@weierophinney weierophinney [zen-33] PluginBroker <-> ServiceManager integration
- Check if the service locator has an entry for the plugin; if so, don't
  do a lookup in the plugin class locator
- Ensure that the controller plugin broker is injected with the service
  manager
- Ensure that the template path stack is properly initialized
53ec2df
@weierophinney weierophinney [zen-33] Renamed Consumer to Feature
- Renamed Zend\Module\Consumer to Zend\Module\Feature
- Modified listeners relying on Consumer interfaces:
  - Use Feature interfaces
  - Use combination of typehinting and duck-typing to determine when a
    module is of interest
- Updated and fixed tests to ensure above works
8cee8a9
@weierophinney weierophinney Create ConfigProviderInterface
- Created ConfigProviderInterface, for use with ConfigListener
- duck-typing still allowed, but Module may also implement
  ConfigProviderInterface
424beeb
@weierophinney weierophinney Renamed Feature interfaces
- Appended "Interface" to those that didn't already
bb77028
@weierophinney weierophinney [zen-33] Added ServiceListener feature
- Allows modules to provide configuration to the service manager
  - Return an array or Traversable compatible with
    Zend\ServiceManager\Configuration
  - Return a Zend\ServiceManager\Configuration instance
e836432
@weierophinney weierophinney Created InitProviderInterface
- InitTrigger now tests for this, or for init() method
62b7a78
@weierophinney weierophinney [zen-33] Wrap abstract factories in try/catch
- Ensure the call to the abstract factory is wrapped in a try/catch block so
  that any exceptions can be re-thrown as ServiceManager exceptions. This allows
  scoped containers to exhaust their peering managers and thus move on to
  internally scoped factories.
7189b2e
@weierophinney weierophinney Renamed "Module" component to "ModuleManager"
- in accordance with IRC meeting of 16 May 2012
0417936
@weierophinney weierophinney Updated Zend\Mvc to reference ModuleManager
- s/(Zend.Module)/\1Manager/
- s/\/Manager/\/ModuleManager/
8661c10
@weierophinney weierophinney Better exception message
- when abstract factory fails
eb247fb
@weierophinney weierophinney [zen-33] Consult peering managers last
- Logic problem in get(): it was consulting the peering manager before
  trying to create in the scoped container -- peering manager should be
  the fallback.
b1fa963
@weierophinney weierophinney [zen-33] Better peering manager support e8fa054
@weierophinney weierophinney Add controller plugin loader, broker aliases
- So that DI will pull them from the service manager
8c677c5
@weierophinney weierophinney Add DI abstract factory to controller loader 8dac047
@weierophinney weierophinney [zen-33] Tests for all 404 conditions
- Use the ControllerLoader in order to set factories and invokable classes
56b50f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.