Skip to content

Instantly share code, notes, and snippets.

@alex7r
alex7r / 20-xdebug.ini
Last active April 4, 2019 09:06
Setup Xdebug
[Xdebug]
zend_extension="/usr/lib/php/20151012/xdebug.so"
xdebug.idekey="PHPSTORM"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = on
xdebug.remote_host = 10.0.2.2
xdebug.renite_enable = 1
xdebug.max_nesting_level = 1000
xdebug.remote_port = 9000
@alex7r
alex7r / snippet.php
Created August 5, 2016 11:02
Change protected property
<?php
$reflectionAppClass = new ReflectionClass($this->app);
$reflectionAppClassProperty = $reflectionAppClass->getProperty('template');
$reflectionAppClassProperty->setAccessible(true);
$reflectionAppClassProperty->setValue($this->app, $template);