Skip to content

Commit e4836b8

Browse files
committed
Bugfix commit
1 parent 42aa308 commit e4836b8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This library can serialize your php objects into `JSON`, `YAML` and `XML`.
1010
### General
1111
At first include this library classes:
1212
```php
13-
require_once __DIR__ . 'XXXXX/vendor/autoload.php';
13+
require_once __DIR__ . '/XXXXX/vendor/autoload.php';
1414

1515
use Serializer/JSON// |\
1616
use Serializer/XML // |- Choose what you need
@@ -42,7 +42,7 @@ $json->serialize($obj, ["value1", "value3"]);
4242
If you would add new formats, you should create your own class
4343
which extends `AbstractSerializer.php` and implements `SerializerInterface.php`.
4444
```php
45-
require_once __DIR__ . 'vendor/autoload.php';
45+
require_once __DIR__ . '/vendor/autoload.php';
4646
use Serializer\AbstractSerializer;
4747
use Serializer\SerializerInterface;
4848

@@ -69,7 +69,7 @@ return json_encode($public_value)
6969
Let's see how it works using the YAML example.
7070
```php
7171
//Include library
72-
require_once __DIR__ . 'vendor/autoload.php';
72+
require_once __DIR__ . '/vendor/autoload.php';
7373

7474
use Serializer\YAML;
7575

test/demo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<?php
44

5-
require_once DIR . '/../vendor/autoload.php';
5+
require_once __DIR__ . '/../vendor/autoload.php';
66

77
use Serializer\JSON;
88

0 commit comments

Comments
 (0)