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 | |
class Issues_Profiler | |
{ | |
/** | |
* Timers for code profiling | |
* | |
* @var array | |
*/ |
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 | |
use Zend\Loader\StandardAutoloader as Autoloader, | |
Zend\Db\Metadata\Metadata, | |
Zend\Db\Adapter\Adapter as DbAdapter; | |
///////////////////////////////////// | |
// START CONFIGURATION | |
///////////////////////////////////// | |
// |
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
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\CircularDependencyFoundException' with message 'Circular dependency for LazyServiceLoader was found for instance ZfcUserAcl\Service\ZfcUserAclService' in /srv/workspace/zf2/library/Zend/ServiceManager/ServiceManager.php on line 294 | |
Zend\ServiceManager\Exception\CircularDependencyFoundException: Circular dependency for LazyServiceLoader was found for instance ZfcUserAcl\Service\ZfcUserAclService in /srv/workspace/zf2/library/Zend/ServiceManager/ServiceManager.php on line 538 | |
Call Stack: | |
0.0003 242312 1. {main}() /srv/workspace/mtdtimetracker/public/index.php:0 | |
0.0127 1188608 2. Zend\ModuleManager\ModuleManager->loadModules() /srv/workspace/mtdtimetracker/public/index.php:18 | |
0.0173 1496040 3. Zend\EventManager\EventManager->trigger() /srv/workspace/zf2/library/Zend/ModuleManager/ModuleManager.php:88 | |
0.0173 1496128 4. Zend\EventManager\EventManager->triggerListeners() /srv/workspace/zf2/library/Zend/EventManage |
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
<div class="portlet x12"> | |
<div class="portlet-header"> | |
<h4>All Database Queries</h4> | |
</div> | |
<div class="portlet-content"> | |
<table width="100%"> | |
<tr><th></th><th>Query</th><th>Type</th><th>Time</th></tr> | |
<?php foreach ($this->dbQueryProfiles() as $index => $p) : ?> | |
<?php $profile = $p->toArray(); ?> | |
<tr> |
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; | |
class DbQueryProfiles extends AbstractHelper | |
{ | |
protected $profiler; |
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 | |
public function getViewHelperConfig() | |
{ | |
return array( | |
'factories' => array( | |
'dbqueryprofiles' => function($sm) { | |
$sm = $sm->getServiceLocator(); | |
$helper = new View\Helper\DbQueryProfiles; | |
$helper->setProfiler($sm->get('Zend\Db\Adapter\Adapter')->getProfiler()); |
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 Dashboard\View; | |
use SmsCommon\Acl\NotAllowedException; | |
use Zend\EventManager\EventManagerInterface; | |
use Zend\EventManager\ListenerAggregateInterface; | |
use Zend\Http\Response as HttpResponse; | |
use Zend\Mvc\Application; |
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/bash - | |
if [ -n "$DESKTOP_AUTOSTART_ID" ]; then | |
echo "Registering with Gnome Session Manager via Dbus and id $DESKTOP_AUTOSTART_ID" | |
dbus-send --session --print-reply=string --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.RegisterClient "string:i3" "string:$DESKTOP_AUTOSTART_ID" | |
else | |
echo "DESKTOP_AUTOSTART_ID not set." | |
fi |
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 execute() | |
{ | |
$this->before(); | |
$method = $this->get_http_method(); | |
$this->_data = $this->{$method}(); | |
$this->after(); |
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 static function cache($name, $data = NULL, $lifetime = NULL) | |
{ | |
if (function_exists('apc_store')) | |
return self::_apc_cache($name, $data, $lifetime); | |
return parent::cache($name, $data, $lifetime); | |
} | |
protected static function _apc_cache($name, $data = NULL, $lifetime = NULL) | |
{ |
OlderNewer