Try using the directive class_alias()
in your bootstrap script to alias your replacement class Select
(with namespace) into the full namespace of the ZF2 class Select
-
class_alias("Your\\Namespace\\Select", "Zend\\Db\\Sql\\Select");
Unfortunately, this is just a more focused version of the autoload definition that you specified above, unfortunately, you still have to redefine your version of the class Select
to include all the current code in the Zend class Select
, as and as far as I know, there is no way to extend one class from another followed by the alias of the expanding class above the original.
- BetterReflection "Zend", (, -, , , ) . , .
: Roave, , BetterReflection. , , .