-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from gregorybesson/develop
1.0.0 First version
- Loading branch information
Showing
27 changed files
with
3,416 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
require_once __DIR__ . '/src/PlaygroundGallery/Module.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.