for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* src/SecurityTxtFacade.php.
*
* @author Austin Heap <[email protected]>
* @version v0.3.2
*/
declare(strict_types = 1);
namespace AustinHeap\Security\Txt;
use RuntimeException;
* SecurityTxtFacade.
* @link https://github.com/austinheap/laravel-security-txt
* @link https://packagist.org/packages/austinheap/laravel-security-txt
* @link https://austinheap.github.io/laravel-security-txt/classes/AustinHeap.Security.Txt.SecurityTxtFacade.html
class SecurityTxtFacade extends \Illuminate\Support\Facades\Facade
{
* Get the registered name of the component.
* @return string
protected static function getFacadeAccessor()
return 'SecurityTxt';
}
* Handle dynamic, static calls to the object.
* @param string $method
* @param array $args
* @return mixed
* @throws RuntimeException
public static function __callStatic($method, $args)
$instance = static::getFacadeRoot();
if (!$instance) {
throw new RuntimeException('A facade root has not been set.');
return $instance->$method(...$args);