for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Leonidas\Library\Core\Http\Policy;
use Psr\Http\Message\ServerRequestInterface;
use WebTheory\HttpPolicy\ServerRequestPolicyInterface;
class NoAutosave implements ServerRequestPolicyInterface
{
public function approvesRequest(ServerRequestInterface $request): bool
return !(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE);
Leonidas\Library\Core\Http\Policy\DOING_AUTOSAVE
}