You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/userguide/index.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,10 @@ In the .ZIP or .tar file in which you received the library, everything under
52
52
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:
53
53
54
54
// Define the path to the library
55
-
$libPath = '/path/to/php-opencloud';
56
-
55
+
$libPath = '/path/to/php-opencloud/lib';
56
+
57
57
// 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';
63
59
64
60
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).
65
61
@@ -94,11 +90,11 @@ Other Available Documentation
94
90
95
91
The *php-opencloud API Reference* is auto-generated documentation on the entire
96
92
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).
99
95
[@TODO provide links to internal and online versions]
100
96
101
-
The *php-opencloud Quick Reference* is a simplified reference, providing API
97
+
The *php-opencloud Quick Reference* is a simplified reference, providing API
102
98
descriptions and syntax for the core features of the library. It is found in
0 commit comments