xobotyi / beansclient

Robust PHP client for beanstalkd work queue
MIT License
91 stars 10 forks source link

Serializer example is wrong, it should be new JsonSerializer() #15

Closed tolgaulas closed 4 years ago

tolgaulas commented 5 years ago

Examples of beansclient\Serializer has the below reference:

use xobotyi\beansclient\Serializer\Json;
$client = new BeansClient(new Connection(), new Json());

which is wrong since the class name is JsonSerializer, the correct one should be.

use xobotyi\beansclient\Serializer\JsonSerializer;
$client = new BeansClient(new Connection(), new JsonSerializer());
xobotyi commented 5 years ago

Sadly has absolutely no time to update the docs - this is why lib in alpha stage.

ghost commented 4 years ago

Will you accept a PR to fix this issue?