Created
August 5, 2016 11:02
-
-
Save alex7r/d13ad8036d0a40778abd3a77fec9c0bc to your computer and use it in GitHub Desktop.
Change protected property
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 | |
$reflectionAppClass = new ReflectionClass($this->app); | |
$reflectionAppClassProperty = $reflectionAppClass->getProperty('template'); | |
$reflectionAppClassProperty->setAccessible(true); | |
$reflectionAppClassProperty->setValue($this->app, $template); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment