for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lagdo\Symfony\Facades;
abstract class AbstractFacade
{
/**
* Get the service identifier.
*
* @return string
*/
abstract protected static function getServiceIdentifier(): string;
* Get the service instance.
* @return mixed
public static function instance()
return Container::getFacadeService(static::getServiceIdentifier());
}
* Call the service.
* @param string $method
* @param array $arguments
public static function __callStatic(string $method, array $arguments)
// Get the instance and call the method.
return self::instance()->$method(...$arguments);