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.

Revisions

  1. thattomperson created this gist Jul 27, 2020.
    22 changes: 22 additions & 0 deletions Symfony1TinkerwellDriver.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    <?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);
    }
    }