forked from barryvdh/laravel-debugbar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Facade to Debugbar (barryvdh#1218)
Creating the facade as a class named Debugbar enables better auto completion for IDEs and the like. To avoid naming conflicts it exists in a separate folder Facades. For backwards compatibility of existing code the current Facade persists as a class that extends the Debugbar facade class. This should allow for a minor update to the package with a deprecation notice on existing code importing the Facade explicitly.
- Loading branch information
Showing
6 changed files
with
44 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Barryvdh\Debugbar\Facades; | ||
|
||
use DebugBar\DataCollector\DataCollectorInterface; | ||
|
||
/** | ||
* @method static LaravelDebugbar addCollector(DataCollectorInterface $collector) | ||
* @method static void addMessage(mixed $message, string $label = 'info') | ||
* @method static void alert(mixed $message) | ||
* @method static void critical(mixed $message) | ||
* @method static void debug(mixed $message) | ||
* @method static void emergency(mixed $message) | ||
* @method static void error(mixed $message) | ||
* @method static LaravelDebugbar getCollector(string $name) | ||
* @method static bool hasCollector(string $name) | ||
* @method static void info(mixed $message) | ||
* @method static void log(mixed $message) | ||
* @method static void notice(mixed $message) | ||
* @method static void warning(mixed $message) | ||
* | ||
* @see \Barryvdh\Debugbar\LaravelDebugbar | ||
*/ | ||
class Debugbar extends \Illuminate\Support\Facades\Facade | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return LaravelDebugbar::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters