Upgrade Guide
From version 4.x to 5.x.
v8.x
Laravel Upgraded the illuminate/*
packages to version ^8.x
. Please review Laravel's upgrade guide for additional information.
bootstrap()
in Console Kernel
Added 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 made for additional information.
Removed Deprecated Components
The following deprecated components have been removed:
Aedart\Dto
(replaced byAedart\Dto\Dto
).Aedart\ArrayDto
(replaced byAedart\Dto\ArrayDto
).Aedart\Console\CreateAwareOfCommand
(replaced byAedart\Support\AwareOf\Console\CreateCommand
).Aedart\Console\CommandBase
(replaced byAedart\Support\AwareOf\Console\CommandBase
).Aedart\Console\AwareOfScaffoldCommand
(replaced byAedart\Support\AwareOf\Console\ScaffoldCommand
).- Removed all aware-of helpers in
Aedart\Support\Properties\Mixed\*
andAedart\Contracts\Support\Properties\Mixed\*
namespaces (replaced byAedart\Support\Properties\Mixes\*
andAedart\Contracts\Support\Properties\Mixes\*
).
Onward
You can review other changes in the changelog.