app/Http/Controllers/Controller.php
with the following contents:404.php
archive.php
author.php
index.php
page.php
search.php
single.php
lumberjack-core
to version 4.config/app.php
:providers
above.render()
function has changed to the PSR interface from the concrete Zend implementation.app/Exceptions/Handler.php
:bind()
method on the Application
container is no longer a singleton by default when the value (2nd param) is not a primitive or object instance.singleton()
method has been provided to enable the previous behaviour. This enables the app developer to be more intentional about the behaviour they desire.ServerRequest
class (optional)ServerRequest
class into a Controller, you can now switch this out for the following class if you want to benefit from some of the new helper functions:ServerRequest
instance using the request()
helper instead of using dependency injection. For example:ServerRequest
object can do. If you are using global helpers, you can replace $request
with request()
instead in the examples below:ViewModel
base class no longer extends from stdClass
and so can no longer have arbitrary properties set on it.bootstrap/app.php
you should change how the exception handler is bound to Rareloop\Lumberjack\Exceptions\HandlerInterface
.Helpers::app()
helperHelpers::app()
(and the app()
global counterpart) no longer use the make()
method of the Application instance and now rely on get()
. This provides much more consistent behaviour with other uses of the Container. If you still want to use the helpers to get make()
behaviour you can change your code.Router
class namespaceRouter
class from the container, you'll need to change the class reference.http-interop/http-server-middleware
package has been deprecated in favour of the now official PSR-15 interfaces found in psr/http-server-middleware
.Psr\Http\Server\MiddlewareInterface
interface.