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
#################################################################################### | |
## ## | |
## gittyup() - Easily keep master in sync with upstream. ## | |
## ## | |
## Author: Evan Coury, http://blog.evan.pro/ ## | |
## URL: https://gist.github.com/1506822 ## | |
## ## | |
## This bash function is a simple shortcut for keeping your local (and public ## | |
## fork / origin remote) master branch up to date and in sync with the upstream ## | |
## master. To use gittyup(), simply drop this in your ~/.bashrc. ## |
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\Custom; | |
use Zend\Config\Factory as ConfigFactory; | |
class Locator | |
{ | |
const DEFAULT_CUSTOM = '_default'; | |
const CUSTOM_DIRECTORY = '_custom'; |
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 getTransactionDataAction() | |
{ | |
try { | |
if ($this->transaction == false || $this->transaction->getStatus() != Transaction::STATUS_COMPLETED) { | |
return $this->envelopeResult(false, sprintf(self::ERR_INCORRECT_TRANSACTION, $this->_transaction)); | |
} | |
return $this->envelopeResult(true, $this->transaction->toArray()); | |
} catch (\Exception $e) { | |
return $this->envelopeResult(false, $e->getMessage()); |
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
'routes' => array( | |
'cms' => array( | |
'type' => 'Regex', | |
'priority' => '-1000', | |
'options' => array( | |
'route' => '/(?<slug>.*)', | |
'defaults' => array( | |
'controller' => 'index', | |
'action' => 'page', | |
), |
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
Catchable fatal error: Argument 1 passed to ZfcUser\Controller\Plugin\ZfcUserAuthentication::setServiceManager() must be an instance of Zend\ServiceManager\ServiceManager, instance of ZfcUser\Controller\Plugin\ZfcUserAuthentication given, called in /home/wesley/sites/spoonx/vendor/zendframework/zendframework/library/Zend/Mvc/Service/ServiceManagerConfiguration.php on line 177 and defined in /home/wesley/sites/spoonx/vendor/ZfcUser/src/ZfcUser/Controller/Plugin/ZfcUserAuthentication.php on line 112 |
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
wesley@ubuntu-wesley:~/sites/spoonx$ sudo php composer.phar update | |
Updating dependencies | |
- Updating zendframework/zendframework (dev-master) | |
[RuntimeException] | |
Source directory /home/wesley/sites/spoonx/vendor/zendframework/zendframework has | |
uncommitted changes | |
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
/** | |
* Set a value in the config. | |
* | |
* @param string $name | |
* @param mixed $value | |
* @return void | |
* @throws Exception\RuntimeException | |
*/ | |
public function __set($name, $value) | |
{ |
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
class Module implements | |
AutoloaderProviderInterface, | |
ConfigProviderInterface, | |
BootstrapListenerInterface | |
{ |
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 Cms\Mapper; | |
use ZfcBase\Mapper\AbstractDbMapper; | |
class Slug extends AbstractDbMapper implements DbAdapterAwareInterface | |
{ | |
protected $tableName = 'slugs'; |
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
if ($assetManager->serveAsset($application->getRequest())) { | |
// enforcing application stop - does still allow EVENT_FINISH | |
$evm = $application->getEventManager(); | |
$evm->clearListeners(MvcEvent::EVENT_DISPATCH); | |
$evm->clearListeners(MvcEvent::EVENT_DISPATCH_ERROR); | |
$evm->clearListeners(MvcEvent::EVENT_ROUTE); | |
$evm->clearListeners(MvcEvent::EVENT_RENDER); | |
// @todo also detach from shared event manager? | |
// @todo this could also be avoided if we move the asset manager to a controller and use the standard MVC |
OlderNewer