Development

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

You must first sign up to be able to contribute.

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

Revision 5363, 1.0 kB (checked in by noel, 7 years ago)

Fixed coding standards

  • 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  * @package    symfony
32  * @subpackage addon
33  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
34  * @version    SVN: $Id$
35  */
36 class sfEzComponentsBridge
37 {
38   public static function autoload($class)
39   {
40     return ezcBase::autoload($class);
41   }
42 }
43
Note: See TracBrowser for help on using the browser.