Skip to content

Refactoring is cool! 😎

Latest
Compare
Choose a tag to compare
@simivar simivar released this 03 Jun 17:23

Added

  • Introduced Genius\Exception\ApiResponseErrorException
  • PHP-CS-Fixer with PSR12 configuration
  • Enum Genius\Enum\Scope
  • Genius\HttpClient\ClientConfiguration
  • Genius\HttpClient\Requester
  • Genius\HttpClient\RequestBuilder

Changed

  • Marked Genius\Genius as final
  • All classes properties now have type-hints
  • Object returned by and Exceptions thrown by Genius\Resources\AbstractResource::sendRequest changed
    now on success it returns data from result object preperty
    and on error it throws Genius\Exception\ApiResponseErrorException.
    This means that return value and exceptions of every Resource has changed!
  • Moved Genius\GeniusException to Genius\Exception\GeniusException
  • Moved Genius\ConnectGeniusException to Genius\Exception\ConnectGeniusException
  • Moved Genius\Resources\ResourceException to Genius\Exception\ResourceException
  • Marked all *Resource classes as final
  • Renamed OAuth2::getAuthUrl() to OAuth2::getAuthorizeUrl()
  • Renamed Scope to ScopeList

Removed

  • Support for PHP lower than 7.4
  • Public methods OAuth2::hasValidAccessToken(), OAuth2::getAccessToken(), OAuth2::setRedirectUri(), OAuth2::setClientId(), OAuth2::setScope()
  • Scope constants from ScopeList class, use Genius\Enum\Scope instead
  • Genius\Genius::getRequestFactory
  • Genius\ConnectGenius::setUriFactory
  • Genius\ConnectGenius::getUriFactory
  • Genius\ConnectGenius
  • Genius\Authentication\ScopeList constants, use Enum\Scope instead