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
public function getServiceConfig() | |
{ | |
return array( | |
'factories' => array( | |
'Application\Service\PlayerService' => function ($sm) { | |
$model = new Service\PlayerService($sm); | |
return $model; | |
} | |
) | |
); |
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\Validator; | |
use Zend\Validator\AbstractValidator; | |
use Zend\Validator\Exception; | |
use Doctrine\Common\Persistence\ObjectRepository; | |
use Zend\Stdlib\ArrayUtils; | |
/** |
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
/** | |
* Removes duplicate entries in a multi-dimensional array | |
* @param array $a the array you want to process | |
* @param string $i the index you would like to run against | |
* @return array the processed array | |
*/ | |
public function md_array_unique($a, $i) { | |
$unset = array(); | |
for($x = 0; $x < sizeof($a); $x++){ | |
for($y = 1; $y < (sizeof($a) - $x); $y++){ |
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\Service; | |
use Zend\Crypt\Password\Bcrypt; | |
use Application\Entity; | |
class UserService | |
{ | |
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\Form; | |
use Zend\Form\Form; | |
use Zend\Validator; | |
use Zend\InputFilter\InputFilterProviderInterface; | |
class YourForm extends Form implements InputFilterProviderInterface | |
{ |
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\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Zend\Mvc\MvcEvent; | |
use Zend\View\Model\JsonModel; | |
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 Application\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
class VillageController extends AbstractActionController | |
{ | |
private $em; |
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 | |
/** | |
* SlmLocale Configuration | |
* | |
* If you have a ./config/autoload/ directory set up for your project, you can | |
* drop this config file in it and change the values as you wish. | |
*/ | |
$settings = array( | |
/** | |
* Default locale |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
compass: { | |
files: [ | |
'sass/**/*.scss' | |
] | |
clean: { | |
options: { |
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 ApplicationTest\Service; | |
use PHPUnit_Framework_TestCase; | |
use ApplicationTest\Bootstrap; | |
use Application\Service; | |
use Application\Entity; |
OlderNewer