diff options
author | Susinthiran Sithamparanathan <chesusin@gmail.com> | 2012-10-17 12:25:34 +0200 |
---|---|---|
committer | Susinthiran Sithamparanathan <chesusin@gmail.com> | 2012-10-17 16:17:36 +0200 |
commit | b2b84f3a6f3c98005f80c6c7c558a33b4ea36193 (patch) | |
tree | 1ae0c571e25ab7322e9a942dfdcc593f67e98ad6 /3rdparty/Sabre/autoload.php | |
parent | 45dec77d92c9a7804489bee34b218bbe8c85f7c5 (diff) | |
download | nextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.tar.gz nextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.zip |
Update Sabre to version 1.7.1
Diffstat (limited to '3rdparty/Sabre/autoload.php')
-rw-r--r--[-rwxr-xr-x] | 3rdparty/Sabre/autoload.php | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/3rdparty/Sabre/autoload.php b/3rdparty/Sabre/autoload.php index c7b537d83d3..505bd36efb0 100755..100644 --- a/3rdparty/Sabre/autoload.php +++ b/3rdparty/Sabre/autoload.php @@ -1,31 +1,27 @@ <?php /** - * SabreDAV's PHP autoloader + * SabreDAV's autoloader * - * If you love the autoloader, and don't care as much about performance, this - * file register a new autoload function using spl_autoload_register. + * This file is kept for backwards compatibility purposes. + * SabreDAV now uses the composer autoloader. + * + * You should stop including this file, and include 'vendor/autoload.php' + * instead. * * @package Sabre * @subpackage DAV + * @deprecated Will be removed in a future version! * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved. * @author Evert Pot (http://www.rooftopsolutions.nl/) * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License */ /** - * @param string $className - * @return void + * We are assuming that the composer autoloader is just 2 directories up. + * + * This is not the case when sabredav is installed as a dependency. But, in + * those cases it's not expected that people will look for this file anyway. */ -function Sabre_autoload($className) { - - if(strpos($className,'Sabre_')===0) { - - include dirname(__FILE__) . '/' . str_replace('_','/',substr($className,6)) . '.php'; - - } - -} - -spl_autoload_register('Sabre_autoload'); +require __DIR__ . '/../../vendor/autoload.php'; |