On 5 mrt. 2013, at 15:29, Matthew Weier O'Phinney <[email protected]> wrote:
> The logic in canCreateServiceWithName() should similarly be
> very lightweight.
interesting read.
Do you see any problems with the following...
This way you would be able to just slap on an interface on any class and
wouldn't have to maintain the AbstractInterface::$serviceClasses array
public function canCreateServiceWithName(ServiceLocatorInterface $services,
$name, $requestedName)
{
return in_array("aninterface", class_implements($name))
}
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]