Skip to content

Commit c6319d6

Browse files
committed
Documentation updates for include path.
1 parent 7660622 commit c6319d6

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [Unreleased]
88

99
### Added
10-
*
10+
*
1111

1212
### Changed
1313
*
1414

1515
### Removed
1616
*
1717

18+
## [0.4.1]
19+
## Changed
20+
* Documentation updates for include path.
1821

1922
## [0.4]
2023
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ composer require jumbojett/openid-connect-php
1818
```
1919
2. Include composer autoloader
2020
```php
21-
require '/vendor/autoload.php';
21+
require __DIR__ . '/vendor/autoload.php';
2222
```
2323

2424
## Example 1: Basic Client ##

client_example.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@
2121
*
2222
*/
2323

24-
require "../../autoload.php";
24+
require __DIR__ . '/vendor/autoload.php';
2525

2626
use Jumbojett\OpenIDConnectClient;
2727

28-
$oidc = new OpenIDConnectClient('http://myproviderURL.com/',
29-
'ClientIDHere',
30-
'ClientSecretHere');
28+
$oidc = new OpenIDConnectClient(
29+
'http://myproviderURL.com/',
30+
'ClientIDHere',
31+
'ClientSecretHere'
32+
);
3133

3234
$oidc->authenticate();
3335
$name = $oidc->requestUserInfo('given_name');

0 commit comments

Comments
 (0)