Development

#4868: sfTaskExtraPlugin.patch

You must first sign up to be able to contribute.

Ticket #4868: sfTaskExtraPlugin.patch

File sfTaskExtraPlugin.patch, 1.5 kB (added by Garfield-fr, 1 year ago)
  • lib/task/generator/skeleton/plugin/plugin/test/bootstrap/unit.php

    old new  
    11<?php 
    22 
    3 if (!isset($_SERVER['SYMFONY'])) 
    4 
    5   throw new RuntimeException('Could not find symfony core libraries.'); 
    6 
    7  
    8 require_once $_SERVER['SYMFONY'].'/autoload/sfCoreAutoload.class.php'; 
     3require_once dirname(__FILE__).'/../../../../config/ProjectConfiguration.class.php'; 
    94sfCoreAutoload::register(); 
    105 
    116$configuration = new sfProjectConfiguration(getcwd()); 
  • lib/task/generator/skeleton/plugin/plugin/test/bootstrap/functional.php

    old new  
    11<?php 
    22 
    3 if (!isset($_SERVER['SYMFONY'])) 
    4 { 
    5   throw new RuntimeException('Could not find symfony core libraries.'); 
    6 } 
    7  
    83if (!isset($app)) 
    94{ 
    105  $app = '##APP_NAME##'; 
    116} 
    127 
    13 require_once $_SERVER['SYMFONY'].'/autoload/sfCoreAutoload.class.php'; 
     8require_once dirname(__FILE__).'/../../../../config/ProjectConfiguration.class.php'; 
    149sfCoreAutoload::register(); 
    1510 
    1611require_once dirname(__FILE__).'/../fixtures/project/config/ProjectConfiguration.class.php'; 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.