ZF-8218: remove unnecessary requirements from Zend_Service_Twitter constructor

Issue Type: Improvement Created: 2009-11-04T10:11:03.000+0000 Last Updated: 2009-11-20T07:33:47.000+0000 Status: Resolved Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: Alex Howansky (alex.howansky) Assignee: Jon Whitcraft (sidhighwind) Tags: - Zend_Service_Twitter

Related issues: Attachments:


There are cases where Zend_Service_Twitter can be used without authentication, but the constructor requires $username and $password to always be passed. For example, checking if a given username exists or not:

$tw = new Zend_Service_Twitter(null); $exists = $tw->user->show($who)->id() !== null;

Since the first parameter is required, one can't simply do this:

$tw = new Zend_Service_Twitter();

I'd like to propose that both constructor parameters should be optional, in order to more cleanly support these anonymous uses.


Posted by Jon Whitcraft (sidhighwind) on 2009-11-20T07:33:47.000+0000

Done with r19095 and merged into the release branch with r19096

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.