Development

/branches/1.1/lib/plugins/sfCompat10Plugin/lib/bridge/sfEzComponentsBridge.class.php

You must first sign up to be able to contribute.

root/branches/1.1/lib/plugins/sfCompat10Plugin/lib/bridge/sfEzComponentsBridge.class.php

Revision 10270, 1.1 kB (checked in by Carl.Vondrick, 6 years ago)

1.1: added deprecated warnings to all sfCompatPlugin classes (closes #3882)

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 $sf_ez_lib_dir = sfConfig::get('sf_ez_lib_dir') ? sfConfig::get('sf_ez_lib_dir').'/' : '';
12
13 if (file_exists($sf_ez_lib_dir.'Base/src/base.php'))
14 {
15   // svn installation
16   require_once($sf_ez_lib_dir.'Base/src/base.php');
17 }
18 elseif (file_exists($sf_ez_lib_dir.'Base/base.php'))
19 {
20   // pear installation
21   require_once($sf_ez_lib_dir.'Base/base.php');
22 }
23 else
24 {
25   throw new sfAutoloadException('Invalid eZ component library path.');
26 }
27
28 /**
29  * This class makes easy to use ez components classes within symfony
30  *
31  * WARNING: This class is deprecated and will be removed in symfony 1.2.
32  *
33  * @package    symfony
34  * @subpackage addon
35  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
36  * @version    SVN: $Id$
37  * @deprecated Deprecated since symfony 1.1
38  */
39 class sfEzComponentsBridge
40 {
41   public static function autoload($class)
42   {
43     return ezcBase::autoload($class);
44   }
45 }
46
Note: See TracBrowser for help on using the browser.