xobotyi / beansclient

Robust PHP client for beanstalkd work queue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tolgaulas opened this issue · comments

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());

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

Will you accept a PR to fix this issue?