Skip to content

1.15

Compare
Choose a tag to compare
@butschster butschster released this 31 Oct 12:10
· 10 commits to master since this release
  • Added ability to acknowledge incoming request
/**
 * @subject com.test.action.test
 */
public function testSubject(IncomingRequest $request)
{
    ...
    $request->acknowledge();
}
  • Improved DependencyResolver. It was moved to separate class and added ability to resolve payload parts.
/**
 * @subject com.test.action.test
 */
public function testSubject(IncomingRequest $request, GetUserById $payload)
{
    $user = $this->userRepository->getById($payload->userId)';
    ...
    $request->sendResponse($userPayload);
}
  • Added ability to extends attribute map
//config/serializer.php

'mapping' => [
    Domain\User\Entities\User::class => [
        'to' => Payloads\User::class,
        'attributes' => [
            'id' => ['type' => 'string'],
            'username' => ['type' => 'string'],
            'email' => ['type' => 'string'],
            'createdAt' => ['type' => \Carbon\Carbon::class]
        ]
    ],
    Domain\Model\Entities\Model::class => [
        'to' => Payloads\Model::class,
        'extends' => Domain\User\Entities\User::class, // Here we extend attributes from User
        'attributes' => [
            'studio' => ['type' => Domain\Model\Entities\Model::class,]
        ]
    ],
],
  • Added missed container resolving for IncomingRequest
  • Added ability to set persistent mode for outgoing messages
  • Registered console command for Laravel
  • Added missed phpdoc
  • Added unittests