Skip to content

Commit 70f49fc

Browse files
committed
fixed installation instructions
1 parent d0ce81d commit 70f49fc

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docs/userguide/index.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,10 @@ In the .ZIP or .tar file in which you received the library, everything under
5252
the `lib/` directory should be installed in a location that is accessible. If you're not using a dependency manager like Composer, you will have to register the OpenCloud namespace for your app to use:
5353

5454
// Define the path to the library
55-
$libPath = '/path/to/php-opencloud';
56-
55+
$libPath = '/path/to/php-opencloud/lib';
56+
5757
// Include the autoloader
58-
require_once $libraryPath . '/Autoload.php';
59-
60-
// Register the root OpenCloud namespace
61-
$classLoader = new SplClassLoader('OpenCloud', $libraryPath . '/lib');
62-
$classLoader->register();
58+
require_once $libPath . '/php-opencloud.php';
6359

6460
Once the OpenCloud namespace is registered, you will be able to access all functionality by referencing the class's namespace (in full PSR-0 compliance). For more information about namespaces, check out [PHP's documentation](http://php.net/manual/en/language.namespaces.php).
6561

@@ -94,11 +90,11 @@ Other Available Documentation
9490

9591
The *php-opencloud API Reference* is auto-generated documentation on the entire
9692
php-opencloud library. Because it is auto-generated, it is kept in sync with the
97-
actual underlying source code (unlike this document, which must be manually
98-
edited).
93+
actual underlying source code (unlike this document, which must be manually
94+
edited).
9995
[@TODO provide links to internal and online versions]
10096

101-
The *php-opencloud Quick Reference* is a simplified reference, providing API
97+
The *php-opencloud Quick Reference* is a simplified reference, providing API
10298
descriptions and syntax for the core features of the library. It is found in
10399
various formats:
104100

0 commit comments

Comments
 (0)