Skip to content

Instantly share code, notes, and snippets.

@thattomperson
Created July 27, 2020 00:01
Show Gist options
  • Select an option

  • Save thattomperson/4cfa2c38f5f7c1aaea8c6449ee041bc3 to your computer and use it in GitHub Desktop.

Select an option

Save thattomperson/4cfa2c38f5f7c1aaea8c6449ee041bc3 to your computer and use it in GitHub Desktop.
Symfony 1 Tinkerwell Driver
<?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