Skip to content
Permalink
Browse files

remove zend autoloader

  • Loading branch information...
mamuz committed Aug 20, 2015
1 parent 49cab69 commit cb43be5c39031e3dcc939283e284824c4d07da38
@@ -0,0 +1,8 @@
* text=auto

/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml export-ignore
/README.md export-ignore
@@ -36,7 +36,7 @@ The recommended way to install
```json
{
"require": {
"mamuz/mamuz-blog": "1.*"
"mamuz/mamuz-blog": "*"
}
}
```

This file was deleted.

@@ -1,48 +1,54 @@
{
"name" : "mamuz/mamuz-blog",
"type" : "library",
"description" : "Provides blog feature for ZF2 with Doctrine",
"homepage" : "https://github.com/mamuz/MamuzBlog",
"license" : "MIT",
"keywords" : ["mamuz", "blog", "markdown", "zf2", "doctrine", "twitter-bootstrap"],
"authors" : [
{
"name" : "Marco Muths",
"email": "mamuz.de@gmail.com"
}
],
"minimum-stability": "dev",
"prefer-stable" : true,
"suggest" : {
"mamuz/mamuz-blog-feed": "To provide rss and/or atom feeds"
},
"require" : {
"php" : ">=5.4",
"ext-intl" : "*",
"zendframework/zend-mvc" : "~2.3",
"zendframework/zend-servicemanager": "~2.3",
"zendframework/zend-eventmanager" : "~2.3",
"zendframework/zend-modulemanager" : "~2.3",
"zendframework/zend-loader" : "~2.3",
"zendframework/zend-view" : "~2.3",
"zendframework/zend-http" : "~2.3",
"zendframework/zend-form" : "~2.3",
"zendframework/zend-i18n" : "~2.3",
"doctrine/doctrine-orm-module" : "0.*",
"maglnet/magl-markdown" : "1.*",
"neilime/zf2-twb-bundle" : "2.*@stable",
"hashids/hashids" : "1.0.*",
"cocur/slugify" : "1.0.*"
},
"require-dev" : {
"satooshi/php-coveralls" : "0.6.*",
"phpunit/phpunit" : "4.*",
"mockery/mockery" : "0.9.*",
"mamuz/php-dependency-analysis": "0.*"
},
"autoload" : {
"psr-0": {
"MamuzBlog\\": "src/"
}
"name": "mamuz/mamuz-blog",
"type": "library",
"description": "Provides blog feature for ZF2 with Doctrine",
"homepage": "https://github.com/mamuz/MamuzBlog",
"license": "MIT",
"keywords": [
"blog",
"markdown",
"zf2",
"doctrine",
"twitter-bootstrap"
],
"authors": [
{
"name": "Marco Muths",
"email": "mamuz.de@gmail.com"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"suggest": {
"mamuz/mamuz-blog-feed": "To provide rss and/or atom feeds"
},
"require": {
"php": ">=5.4",
"ext-intl": "*",
"zendframework/zend-mvc": "~2.3",
"zendframework/zend-servicemanager": "~2.3",
"zendframework/zend-eventmanager": "~2.3",
"zendframework/zend-modulemanager": "~2.3",
"zendframework/zend-loader": "~2.3",
"zendframework/zend-view": "~2.3",
"zendframework/zend-http": "~2.3",
"zendframework/zend-form": "~2.3",
"zendframework/zend-i18n": "~2.3",
"doctrine/doctrine-orm-module": "~0.8",
"maglnet/magl-markdown": "~1.3",
"neilime/zf2-twb-bundle": "~2.4",
"hashids/hashids": "~1.0.5",
"cocur/slugify": "~1.0"
},
"require-dev": {
"satooshi/php-coveralls": "0.6.*",
"phpunit/phpunit": "4.*",
"mockery/mockery": "0.9.*",
"mamuz/php-dependency-analysis": "0.*"
},
"autoload": {
"psr-0": {
"MamuzBlog\\": "src/"
}
}
}
@@ -86,7 +86,9 @@ class Post
private $modifiedAt;
/**
* init datetime objects
* @param null $id
* @param \DateTime|null $createdAt
* @param \DateTime|null $modifiedAt
*/
public function __construct($id = null, \DateTime $createdAt = null, \DateTime $modifiedAt = null)
{
@@ -8,7 +8,6 @@
use Zend\ModuleManager\ModuleManagerInterface;
class Module implements
Feature\AutoloaderProviderInterface,
Feature\ConfigProviderInterface,
Feature\InitProviderInterface
{
@@ -29,20 +28,6 @@ public function getConfig()
return include __DIR__ . '/../../config/module.config.php';
}
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\ClassMapAutoloader' => array(
__DIR__ . '/../../autoload_classmap.php',
),
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__,
),
),
);
}
private function addDomainManager(ModuleManager $modules)
{
/** @var \Zend\ServiceManager\ServiceLocatorInterface $sm */
@@ -6,7 +6,6 @@
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\ServiceManager\ServiceManager;
abstract class AbstractPagerFactory implements FactoryInterface
{
@@ -16,6 +16,7 @@ public function __construct($template)
}
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke($href, $title, $content, $class = null)
@@ -34,6 +34,7 @@ public function __construct(RangeInterface $range, $route, $pageKey)
}
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke(\Countable $collection, array $params)
@@ -5,6 +5,7 @@
class Panel extends AbstractHelper
{
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke($header, $content, $footer)
@@ -7,6 +7,7 @@
class PermaLinkPost extends AbstractHelper
{
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke(PostEntity $entity)
@@ -7,6 +7,7 @@
class PostMeta extends AbstractHelper
{
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke(PostEntity $entity)
@@ -19,6 +19,7 @@ class PostPanel extends AbstractHelper
protected $footer;
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke(PostEntity $entity)
@@ -19,6 +19,7 @@ public function __construct(SlugifyInterface $filter)
}
/**
* {@inheritdoc}
* {@link filter()}
*/
public function __invoke($value)
@@ -7,6 +7,7 @@
class Tag extends AbstractHelper
{
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke(TagEntity $entity)
@@ -5,6 +5,7 @@
class TagAnchor extends AbstractHelper
{
/**
* {@inheritdoc}
* {@link render()}
*/
public function __invoke($tagName, $content)
@@ -29,6 +29,4 @@ public function createService(ServiceLocatorInterface $serviceLocator)
return new TagList($mvcEvent, $tagQueryService);
}
}
@@ -16,7 +16,6 @@ protected function setUp()
public function testImplementingFeatures()
{
$this->assertInstanceOf('Zend\ModuleManager\Feature\AutoloaderProviderInterface', $this->fixture);
$this->assertInstanceOf('Zend\ModuleManager\Feature\ConfigProviderInterface', $this->fixture);
$this->assertInstanceOf('Zend\ModuleManager\Feature\InitProviderInterface', $this->fixture);
}
@@ -27,16 +26,6 @@ public function testConfigRetrieval()
$this->assertSame($expected, $this->fixture->getConfig());
}
public function testAutoloaderConfigRetrieval()
{
$expected = array(
'Zend\Loader\ClassMapAutoloader',
'Zend\Loader\StandardAutoloader',
);
$this->assertSame($expected, array_keys($this->fixture->getAutoloaderConfig()));
}
public function testLoadingModules()
{
$moduleManager = \Mockery::mock('Zend\ModuleManager\ModuleManagerInterface');

0 comments on commit cb43be5

Please sign in to comment.
You can’t perform that action at this time.