Skip to content

Commit

Permalink
Merge pull request #7 from gregorybesson/develop
Browse files Browse the repository at this point in the history
1.0.0 First version
  • Loading branch information
gregorybesson committed Feb 4, 2014
2 parents f822c6e + b5d911c commit 3144425
Show file tree
Hide file tree
Showing 27 changed files with 3,416 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
require_once __DIR__ . '/src/PlaygroundGallery/Module.php';
163 changes: 163 additions & 0 deletions config/module.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

return array(
'doctrine' => array(
'driver' => array(
'glaygroundgallery_entity' => array(
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'cache' => 'array',
'paths' => __DIR__ . '/../src/PlaygroundGallery/Entity'
),

'orm_default' => array(
'drivers' => array(
'PlaygroundGallery\Entity' => 'glaygroundgallery_entity'
)
)
)
),
'router' => array(
'routes' => array(
'admin' => array(
'child_routes' => array(
'playgroundgallery' => array(
'type' => 'Segment',
'options' => array(
'route' => '/gallery',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'create' => array(
'type' => 'Segment',
'options' => array(
'route' => '/create',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'create',
),
),
),
'edit' => array(
'type' => 'Segment',
'options' => array(
'route' => '/edit[/:mediaId]',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'edit',
),
'constraints' => array(
'mediaId' => '[0-9]*',
),
),
),
'download' => array(
'type' => 'Segment',
'options' => array(
'route' => '/download[/:mediaId]',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'download',
),
'constraints' => array(
'mediaId' => '[0-9]*',
),
),
),
'remove' => array(
'type' => 'Segment',
'options' => array(
'route' => '/remove[/:mediaId]',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'remove',
),
'constraints' => array(
'mediaId' => '[0-9]*',
),
),
),
'category' => array(
'type' => 'Segment',
'options' => array(
'route' => '/category'
),
'may_terminate' => true,
'child_routes' => array(
'create' => array(
'type' => 'Segment',
'options' => array(
'route' => '/create',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'createCategory',
),
),
),
'edit' => array(
'type' => 'Segment',
'options' => array(
'route' => '/edit[/:categoryId]',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'editCategory',
),
'constraints' => array(
'categoryId' => '[0-9]*',
),
),
),
'remove' => array(
'type' => 'Segment',
'options' => array(
'route' => '/remove[/:categoryId]',
'defaults' => array(
'controller' => 'PlaygroundGallery\Controller\Admin\GalleryAdmin',
'action' => 'removeCategory',
),
'constraints' => array(
'categoryId' => '[0-9]*',
),
),
),
),
),
),
),
),
),
),
),
'service_manager' => array(
'abstract_factories' => array(
'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
'Zend\Log\LoggerAbstractServiceFactory',
)
),
'controllers' => array(
'invokables' => array(
'PlaygroundGallery\Controller\Admin\GalleryAdmin' => 'PlaygroundGallery\Controller\Admin\GalleryAdminController',
),
),
'navigation' => array(
'admin' => array(
'playgroundgallery' => array(
'label' => 'Gallery',
'route' => 'admin/playgroundgallery',
'resource' => 'playgroundgallery',
'privilege' => 'index',
),
),
),
'autorize_user' => true,
);
26 changes: 26 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="./tests/Bootstrap.php">
<testsuites>
<testsuite name="playgroundgallery">
<directory>./tests/PlaygroundGalleryTest</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./src/PlaygroundGallery</directory>
<directory suffix=".phtml">./view</directory>
<exclude>
<directory suffix=".php">./tests/</directory>
</exclude>
</whitelist>
</filter>

<logging>
<log type="coverage-html" target="./build/coverage" charset="UTF-8"
yui="true" highlight="true" lowUpperBound="40" highLowerBound="80" />
<log type="coverage-clover" target="./build/clover.xml" />
<log type="junit" target="./build/junit.xml" logIncompleteSkipped="false" />
</logging>
</phpunit>
Loading

0 comments on commit 3144425

Please sign in to comment.