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
<?php | |
namespace Kernel\Module; | |
use ZfcCrudRest\Module\AbstractModule as ZfcCrudAbstractModule; | |
abstract class AbstractModule extends ZfcCrudAbstractModule | |
{ | |
public function getConfig() | |
{ |
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
<?php | |
namespace User\Controller; | |
use Zend\Mvc\Controller\AbstractActionController, | |
Zend\View\Model\ViewModel, | |
Zend\Debug\Debug; | |
class IndexController extends AbstractActionController | |
{ | |
/** |
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
<?php | |
namespace EdpGithub\Collection; | |
use Doctrine\Common\Collections\Collection; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\Common\Collections\Selectable; | |
use EdpGithub\Http\Client; |
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
<?php | |
namespace Application\View\Helper; | |
use Zend\View\Helper\AbstractHelper; | |
use Zend\View\Model\ViewModel; | |
use Zend\ServiceManager\ServiceManagerAwareInterface; | |
use Zend\ServiceManager\ServiceManager; | |
class JGridView extends AbstractHelper implements ServiceManagerAwareInterface |
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
#!/bin/sh | |
#copy this script to the installation folder of the v5 | |
# | |
# Create new Release | |
# ./update.sh release /path/to/release; | |
# | |
# Update existing Clients | |
# ./update.sh update /path/to/release /path/to/build.properties; | |
# | |
# Setup new Release Structure |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/zf2 for the canonical source repository | |
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ |
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
<?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 | |
*/ | |
namespace HdInstagram\Controller; |
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
return array( | |
'doctrine' => array( | |
'fixtures' => array( | |
'ModuleName_fixture' => __DIR__ . '/../src/Page/Fixture', | |
), | |
), | |
); | |
print_r($options['doctrine']['fixtures']); |
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
$entityClass = $this->getEntityClass();//API\V1\Entity\Site | |
$entity = new $entityClass; | |
$hydrator = $this->getHydrator();//DoctrineModule\Stdlib\Hydrator\DoctrineObject | |
$hydrator->hydrate((array)$data, $entity); | |
//data | |
object(stdClass)#658 (2) { | |
["id"]=> | |
string(7) "testing" | |
["userId"]=> |