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
object(Zend\Paginator\Paginator)#492 (11) { | |
["cacheEnabled":protected] => bool(true) | |
["adapter":protected] => object(DoctrineORMModule\Paginator\Adapter\DoctrinePaginator)#483 (1) { | |
["paginator":protected] => object(Doctrine\ORM\Tools\Pagination\Paginator)#489 (4) { | |
["query":"Doctrine\ORM\Tools\Pagination\Paginator":private] => object(Doctrine\ORM\Query)#504 (17) { | |
["_state":"Doctrine\ORM\Query":private] => int(2) | |
["_dql":"Doctrine\ORM\Query":private] => string(120) "SELECT UserCountry FROM UserDetail\Entity\UserCountry UserCountry WHERE UserCountry.code='IDN' GROUP BY UserCountry.code" | |
["_parserResult":"Doctrine\ORM\Query":private] => NULL | |
["_firstResult":"Doctrine\ORM\Query":private] => NULL | |
["_maxResults":"Doctrine\ORM\Query":private] => NULL |
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 updateProfileAction() | |
{ | |
$authorize = $this->getServiceLocator()->get('BjyAuthorize\Provider\Identity\ProviderInterface'); | |
$roles = $authorize->getIdentityRoles(); | |
Debug::dump($this->ZfcUserAuthentication()->hasIdentity()); | |
// Debug::dump($roles); | |
die; | |
} |
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 | |
// module/User/src/User/View/Helper/Hellohelper.php | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 11/8/14 | |
* Time: 5:33 AM | |
*/ |
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 Mockizart\Bundle\BlogBundle\Controller; | |
use Mockizart\Bundle\BlogBundle\MockizartBlogBundle; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Mockizart\Bundle\BlogBundle\Entity\MockblogTag; | |
use Mockizart\Bundle\BlogBundle\Form\MockblogTagType; |
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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 11/27/14 | |
* Time: 10:09 AM | |
*/ | |
namespace Mockizart\Bundle\BlogBundle\Service\Entity; |
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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 11/27/14 | |
* Time: 10:09 AM | |
*/ | |
namespace Mockizart\Bundle\BlogBundle\Service\Entity; |
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 Mockizart\Bundle\BlogBundle\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Mockizart\Bundle\BlogBundle\Entity\MockblogPost; | |
/** | |
* MockblogPost 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
post_entity: | |
class: Mockizart\Bundle\BlogBundle\Service\Entity\MockblogPost | |
scope: request | |
arguments: | |
params: | |
tag_entity_name: "%tag_entity_name%" | |
post_entity_name: "%post_entity_name%" | |
user_entity_name: "%user_entity_name%" | |
tag_post_entity_name: "%tag_post_entity_name%" | |
entity_manager: @doctrine.orm.entity_manager |
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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 12/24/14 | |
*/ | |
// ================== Data ================================= | |
$list = ['anto', 'bob', 'boby', 'susi', 'argo', 'sasi', 'szssy', 'bozki']; |
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
$latestInstalled = '0.0.1'; | |
$url = 'https://raw.githubusercontent.com/mockiemockiz/MockBlogBundle/master/composer.json'; | |
$json = json_decode(file_get_contents($url)); | |
if($json->version != $latestInstalled) { | |
/** | |
* download zip file version https://github.com/mockiemockiz/MockBlogBundle/archive/master.zip | |
* run installer script | |
*/ | |
} |