Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Releases: brokencube/circuit

Service Containers

19 Jan 10:39
Compare
Choose a tag to compare

Some clean up of the internals of circuit to reduce number of attributes added to the Request. All modifiable information about the controller (class, method, args) now sit in a simple value object in the request attributes - $request->attributes->get('controller').

Also, instead of passing arbitrary controller arguments, have standardised on PSR-11 containers and there for have changed the $router->setControllerArguments([$arg, $arg2, ...]) function to $router->setServiceContainer($container)

ErrorLogger bugfix

13 Dec 17:16
Compare
Choose a tag to compare

Changing getTrace to getTraceAsString for better compatibility.

ErrorLogger middleware

13 Dec 16:52
Compare
Choose a tag to compare

Added a new ErrorLogger middleware for pushing exceptions into a given log

Minor update to Exception Handling

17 Nov 15:30
Compare
Choose a tag to compare

With the remove of the $context from exception handling, I've moved the catch block much further down the stack to the $router->run() function. This allows middleware based exception handlers (e.g. Whoops) to work as expected, and Circuit's error handling to be used as a backup.

Minor fix to allow exceptions without messages

13 Nov 16:40
Compare
Choose a tag to compare
1.2.2

Default blank exception message

Some minor code cleanup - no functional changes

12 Oct 07:51
Compare
Choose a tag to compare
1.2.1

New CacheWrapper object to merge PSr6/16 cache routes

Added Logging support

25 May 15:35
Compare
Choose a tag to compare

Minor breaking change:
$router->setPrerouteMiddleware is now $router->addPrerouteMiddleware

Minor bugfix release

18 May 12:54
Compare
Choose a tag to compare
1.1.1

Minor style cleanup and minor bug fix from CodeClimate

Major updates

18 May 12:39
Compare
Choose a tag to compare

New features in release:

  • Expanded Middleware variable access - Middleware now has access to the following via $request->attributes:
    • Controller name/method
    • Controller constructor arguments
    • Matched route arguments
  • Pre-routing middleware
  • Ability to register middleware by name (allowing middleware to be constructed per request, instead of having to be serialised into the cache)
  • Exception handlers to allow custom pages/responses to generated HTTP code responses
  • Various Bugfixes
  • Better PHPDocs on main classes

Controller __construct($parameters)

09 May 14:22
Compare
Choose a tag to compare

Added ability to pass parameters to the Controller constructors.