-
-
Save wehowski/e07524043fc4df7c9a7bf8e76a2676d7 to your computer and use it in GitHub Desktop.
Quick insane remote-autoloader "Doorkick"
This file contains hidden or 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 | |
| /** | |
| * Its a doorkick: https://startforum.de/content/perma?id=2156 !!! | |
| * | |
| * But it is short and works. | |
| * | |
| * Do NOT use this, only test or replicate: https://github.com/frdl/remote-psr4 | |
| * | |
| */ | |
| // $webfatFile =getcwd().\DIRECTORY_SEPARATOR.'webfan.setup.php'; | |
| $webfatFile =$_SERVER['DOCUMENT_ROOT'].\DIRECTORY_SEPARATOR.'webfan.setup.php'; | |
| if(!file_exists($webfatFile)){ | |
| if(!file_put_contents($webfatFile, file_get_contents('https://packages.frdl.de/raw/webfan/website/webfan.setup.php'))){ | |
| throw new \Exception(sprintf('Could not install %s in %s', | |
| 'https://packages.frdl.de/raw/webfan/website/webfan.setup.php', | |
| basename(__FILE__))); | |
| } | |
| } | |
| require_once $webfatFile; | |
| \frdlweb\StubRunner::getInstance()->autoloading(); | |
| //...start autoloading... | |
| \Webfan\Patches\Start\Timezone2::defaults( ); | |
| //... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment