You are viewing documentation for an outdated version. It is no longer supported!

Upgrade Guide

From version 4.x to 5.x.

Laravel v8.x

Upgraded the illuminate/* packages to version ^8.x. Please review Laravel's upgrade guideopen in new window for additional information.

Added bootstrap() in Console Kernel

As a result of upgrading to Laravel v8.x, a new bootstrap() method was added to the \Aedart\Core\Console\Kernel component. The runCore() method now invokes the new bootstrap method.

This change only affects you, if a custom implementation of the Console Kernel is used.

Response Expectations

The response expectations in Http Client have changed. They are now encapsulated in a ResponseExpectation instance. This means that if you wish to obtain an expectation, you will no longer receive the original callback method.

// Before (version 4.x)
$containsUserId = function($status, $response) {
    // ... not shown
};

$expectations = $client 
            ->expect($containsUserId)
            ->getExpectations(); // [ $containsUserId ] Array with provided callable method.

var_dump($containsUserId === $expectations[0]); // true

// Now (version 5.x)
$expectations = $client 
            ->expect($containsUserId)
            ->getExpectations(); // [ ResponseExpectation ] Array with response expectation instance

var_dump($containsUserId === $expectations[0]); // false
var_dump($containsUserId === $expectations[0]->getExpectation()); // true

Please review \Aedart\Contracts\Http\Clients\Responses\ResponseExpectation for more details.

Http Client Changes

Several changes have been made to the Http Client and it's request Builder. These changes should not affect you directly. However, if you have custom implementation of the provided interfaces, then you may have to refactor parts of your code. Review the source code and changes madeopen in new window for additional information.

Removed Deprecated Components

The following deprecated components have been removed:

  • Aedart\Dto (replaced by Aedart\Dto\Dto).
  • Aedart\ArrayDto (replaced by Aedart\Dto\ArrayDto).
  • Aedart\Console\CreateAwareOfCommand (replaced by Aedart\Support\AwareOf\Console\CreateCommand).
  • Aedart\Console\CommandBase (replaced by Aedart\Support\AwareOf\Console\CommandBase).
  • Aedart\Console\AwareOfScaffoldCommand (replaced by Aedart\Support\AwareOf\Console\ScaffoldCommand).
  • Removed all aware-of helpers in Aedart\Support\Properties\Mixed\* and Aedart\Contracts\Support\Properties\Mixed\* namespaces (replaced by Aedart\Support\Properties\Mixes\* and Aedart\Contracts\Support\Properties\Mixes\*).

Onward

You can review other changes in the changelogopen in new window.