You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore (maintenance): move maintenance mode logic
Moving the maintenance mode logic to its own class. This enables users to extend/overwrite the class with their own logic.
Overwriting the logic may be needed if for example the application is running on multiple servers.
Fixes #36474
* refactor (maintenance): add isUp method
Adding the isUp method to check if the application is up or is down for maintenance.
Relates to #36474
* doc (maintenance): document code
Extend the documentation about what the code does. Also use FQN.
Relates to #36474
* fix (maintenance): correctly check if in maintenance
Relates to #36474
* refactor (maintenance): use make method
Use the make method instead of the app function to retrieve an instance of the MaintenanceMode container.
Relates to #36474
* doc (maintenance): update docblock
Update the docblock with the newly added method param.
Relates to #36474
* doc (maintenance): update docblock
Update the docblock with the newly added method param.
Relates to #36474
* style (doc): update documentation style
Updating documentation style to comply to the style used within the Laravel codebase.
* style (doc): update documentation style
Updating documentation style to comply to the style used within the Laravel codebase.
* refactor (maintenance): change namespace
Move the class from its own namespace to the Foundation namespace.
Relates to #36474
* style (doc): update documentation style
Updating documentation style to comply to the style used within the Laravel codebase.
* style (doc): update documentation style
Updating documentation style to comply to the style used within the Laravel codebase.
* Update src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php
Co-authored-by: Dries Vints <[email protected]>
* Update src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php
Co-authored-by: Dries Vints <[email protected]>
* refactor (maintenance): move to application
Create an application methode to retrieve the MaintenanceMode instance. This method reduces the need to fetch the MaintenanceMode with the usage of an additional argument in the middleware.
Relates to #36474
* doc (maintenance): add DockBlock
Adding documentation for the newly added methods.
Relates to #36474
* refactor (maintenance): use application method
Use the application method instead of using autowiring. The application method provides the MaintenanceMode instance which removes the requirement to inject the class in the handler method.
Relates to #36474
* Update src/Illuminate/Foundation/MaintenanceMode.php
Co-authored-by: Dries Vints <[email protected]>
* Update src/Illuminate/Foundation/MaintenanceMode.php
Co-authored-by: Dries Vints <[email protected]>
* refactor (maintenance): remove comparison
Remove the comparison with the false value. The method always returns a bool which only allows a true or false return value. This make the comparison redundant.
Relates to #36474
* chore (code): remove unused import
Remove the unused import. Because the FQN is used in the DocBlock the import has become redundant.
* refactor (maintenance): add interface
Add an interface under the contracts to enable developers to easily extend the MaintenanceMode class.
* style (doc): update documentation style
Updating documentation style to comply to the style used within the Laravel codebase.
* refactor (maintenance): bind instance to contract
Bind the default MaintenanceMode class to the contract reference in the service container.
This enables users to set-up their own contract binding to overwrite the default Maintenance Mode behavior.
* style (doc): update documentation style
Updating documentation style to comply to the style used within the Laravel codebase.
* Update src/Illuminate/Foundation/Providers/FoundationServiceProvider.php
Co-authored-by: Choraimy Kroonstuiver <[email protected]>
* formatting and renaming
Co-authored-by: Wim Ulkeman <[email protected]>
Co-authored-by: Dries Vints <[email protected]>
Co-authored-by: Choraimy Kroonstuiver <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
0 commit comments