Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Implement `Zend\ModuleManager\Feature\DependencyIndicatorInterface` #194

Merged
merged 1 commit into from

2 participants

@Ocramius
Owner

As of doctrine/DoctrineModule#186

Also removes autoloader provider (unused/deprecated)

@bakura10
Collaborator

If you do this you must also change the minimum version of ZF 2 to 2.1 OR just implement the method without explicitely implementing the interface. This is what I've done in SlmQueue to keep compatibility with 2.0

@Ocramius
Owner

@bakura10 yes, the bump is already happening in #195

@Ocramius Ocramius merged commit fdc7c68 into master
@Ocramius Ocramius deleted the feature/dependency-indicator branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 16 additions and 18 deletions.
  1. +5 −0 UPGRADE.md
  2. +11 −18 src/DoctrineORMModule/Module.php
View
5 UPGRADE.md
@@ -1,3 +1,8 @@
+# 0.8.0
+
+ * `DoctrineORMModule\Module` does not implement `Zend\ModuleManager\Feature\AutoloaderProviderInterface` anymore.
+ Please switch to composer autoloading.
+
# 0.4.0
Version `0.4.0` has been rewritten from scratch using the new ServiceManager component of ZF2. This allows for
drastically increased performance and reduced complexity of setup.
View
29 src/DoctrineORMModule/Module.php
@@ -19,15 +19,14 @@
namespace DoctrineORMModule;
-use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
use Zend\ModuleManager\Feature\ControllerProviderInterface;
use Zend\ModuleManager\Feature\BootstrapListenerInterface;
use Zend\ModuleManager\Feature\ServiceProviderInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
use Zend\ModuleManager\Feature\InitProviderInterface;
+use Zend\ModuleManager\Feature\DependencyIndicatorInterface;
use Zend\ModuleManager\ModuleManagerInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
-use Zend\Loader\AutoloaderFactory;
use Zend\Loader\StandardAutoloader;
use Zend\EventManager\EventInterface;
@@ -51,12 +50,12 @@
* @author Marco Pivetta <ocramius@gmail.com>
*/
class Module implements
- AutoloaderProviderInterface,
ControllerProviderInterface,
BootstrapListenerInterface,
ServiceProviderInterface,
ConfigProviderInterface,
- InitProviderInterface
+ InitProviderInterface,
+ DependencyIndicatorInterface
{
/**
* {@inheritDoc}
@@ -73,20 +72,6 @@ public function init(ModuleManagerInterface $manager)
/**
* {@inheritDoc}
*/
- public function getAutoloaderConfig()
- {
- return array(
- AutoloaderFactory::STANDARD_AUTOLOADER => array(
- StandardAutoloader::LOAD_NS => array(
- __NAMESPACE__ => __DIR__,
- ),
- ),
- );
- }
-
- /**
- * {@inheritDoc}
- */
public function onBootstrap(EventInterface $e)
{
/* @var $app \Zend\Mvc\ApplicationInterface */
@@ -147,4 +132,12 @@ public function getControllerConfig()
{
return include __DIR__ . '/../../config/controllers.config.php';
}
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getModuleDependencies()
+ {
+ return array('DoctrineModule');
+ }
}
Something went wrong with that request. Please try again.