zendframework/zf2 — pull request #481 by zucchi (2011-10-08 11:49:46+00:00)
Title: Prototype/modules

Have updated modules component to enable more fully formed module dependancies and provisions.

Have re-factored code to improve some performance and offer more complete evaluation of required dependencies.

This also includes a requirement for a module to have a version number

two key methods and one property are now required.. Suspect these will need moving to an interface/abstract

class Module {

protected $version =1;
public function getProvides()
{
return array(
__NAMESPACE__ => array(
'version' => $this->version,
),
);
}

public function getDependencies()
{
return array(
'php' => array(
'version' => '5.3.0',
'required' => true,
),
'ext/pdo_mysql' => array(
'version' => '0.1',
'required' => true,
),
'BooModule' => array(
'required' => true,
),
);
}