Created
July 27, 2020 00:01
-
-
Save thattomperson/4cfa2c38f5f7c1aaea8c6449ee041bc3 to your computer and use it in GitHub Desktop.
Symfony 1 Tinkerwell Driver
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 | |
| class Symfony1TinkerwellDriver extends TinkerwellDriver | |
| { | |
| public function canBootstrap($projectPath) | |
| { | |
| return file_exists($projectPath . '/config/ProjectConfiguration.class.php'); | |
| } | |
| public function bootstrap($projectPath) | |
| { | |
| require_once $projectPath . '/config/ProjectConfiguration.class.php'; | |
| $app = "main"; | |
| $env = "dev"; | |
| $debug = true; | |
| $configuration = ProjectConfiguration::getApplicationConfiguration($app, $env, $debug); | |
| sfContext::createInstance($configuration); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment