AthenaeumAthenaeum
Packages
  • next
  • current
  • v9.x
  • v8.x
  • v7.x
  • v6.x
  • v5.x
  • v4.x
  • v3.x
  • v2.x
  • v1.x
Changelog
GitHub
Packages
  • next
  • current
  • v9.x
  • v8.x
  • v7.x
  • v6.x
  • v5.x
  • v4.x
  • v3.x
  • v2.x
  • v1.x
Changelog
GitHub
  • Version 5.x

    • Release Notes
    • Upgrade Guide
    • New to this...
    • Origin
  • ACL

    • Introduction
    • How to install
    • Setup
    • Permissions
    • Roles
    • Users
    • Cached Permissions
  • Circuits

    • Circuits
    • How to install
    • Setup
    • Usage
    • Events
  • Collections

    • Collections
    • How to install
    • Summation

      • Summation Collection
      • Items Processor
  • Config

    • Configuration Loader
    • How to install
    • Setup
    • Load Configuration Files
    • Custom File Parsers
  • Console

    • Command and Schedule Registration
    • How to install
    • Setup
    • Commands
    • Schedules
  • Container

    • IoC Service Container
    • How to install
    • Container
    • List Resolver
  • Core

    • Athenaeum Core Application
    • Prerequisite
    • How to install
    • Integration
    • Usage

      • Configuration
      • Service Providers
      • Service Container
      • Events
      • Caching
      • Logging
      • Console
      • Task Scheduling
      • Exception Handling
      • Extending Core Application
      • Testing
  • Database

    • Introduction
    • How to install
    • Models

      • Instantiatable
      • Sluggable
    • Query

      • Criteria (Query Filter)
  • Dto

    • Data Transfer Object (DTO)
    • How to install
    • Create Interface
    • Implement DTO
    • How to use
    • Populate
    • Export
    • Json
    • Serialization
    • Nested DTOs
    • Array DTO
  • Events

    • Register Listeners and Subscribers
    • How to install
    • Setup
    • Listeners
    • Subscribers
  • Filters

    • Search Filter Utilities
    • Prerequisites
    • How to install
    • Setup
    • Processor
    • Filters Builder
    • Predefined Resources

      • Search Processor
      • Sorting Processor
      • Constraints Processor
      • Matching Processor
    • Tip: Create a base builder
  • Http

    • Clients

      • Http Clients
      • How to install
      • Setup
      • Basic Usage
      • Available Methods

        • Fluent Api
        • Protocol Version
        • Base Uri
        • Http Method and Uri
        • Headers
        • Accept & Content-Type
        • Authentication
        • Http Query
        • Payload Format
        • Payload
        • Attachments
        • Cookies
        • Response Expectations
        • Middleware
        • Conditions
        • Criteria
        • Redirects
        • Timeout
        • Debugging
        • Logging
        • Driver Options
        • Driver
      • Http Query Builder

        • Introduction
        • Select
        • Where
        • Dates
        • Include
        • Pagination
        • Sorting
        • Raw Expressions
        • Custom Grammar
    • Cookies

      • Http Cookies
      • How to install
      • Usage
    • Messages

      • Http Messages
      • How to install
      • Serializers
  • Properties

    • Properties Overload
    • How to install
    • Usage
    • Naming Convention
    • Properties Visibility
  • Redmine

    • Redmine Api Client
    • How to install
    • Setup
    • General Usage

      • Supported Operations
      • Fetch list of resources
      • Find
      • Fetch
      • Create new record
      • Update existing record
      • Delete existing record
      • Relations
    • Available Resources

      • Predefined Resources
      • Attachments
      • Enumerations
      • Issue Relations
      • Users
      • User Groups
      • Roles
      • Project Memberships
      • Versions (Milestones)
      • Issue Categories
      • Trackers
  • Service

    • Service Registrar
    • How to install
    • How to use
  • Support

    • Introduction
    • How to install
    • Laravel Aware-of Helpers

      • How to use
      • Enforce Via Interface
      • Custom Default
      • Pros and Cons
      • Available Helpers
    • Aware-of Properties

      • Generator
      • Available Aware-of Helpers
    • Live Templates
  • Testing

    • Introduction
    • How to install
    • Test Cases
    • Testing Aware-of Helpers
  • Utils

    • Introduction
    • How to install
    • Array
    • Duration
    • Json
    • Math
    • Method Helper
    • Populatable
    • Version
  • Validation

    • Introduction
    • How to install
    • Setup
    • Rules

      • Alpha-Dash-Dot
You are viewing documentation for an outdated version. It is no longer supported!

Upgrade Guide

From version 4.x to 5.x.

  • From version 4.x to 5.x.
    • Laravel v8.x
    • Added bootstrap() in Console Kernel
    • Response Expectations
    • Http Client Changes
    • Removed Deprecated Components
    • Onward

Laravel v8.x

Upgraded the illuminate/* packages to version ^8.x. Please review Laravel's upgrade guide 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 made 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 changelog.

Edit page
Last Updated: 05/04/2022, 21:01
Contributors: Alin Eugen Deac
Prev
Release Notes
Next
New to this...