Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/writeguard/AphrontWriteGuard.php
| Show All 22 Lines | |||||
| * This is dangerous, because it disables the backup layer of CSRF protection | * This is dangerous, because it disables the backup layer of CSRF protection | ||||
| * this class provides. You should need this only very, very rarely. | * this class provides. You should need this only very, very rarely. | ||||
| * | * | ||||
| * @task protect Protecting Writes | * @task protect Protecting Writes | ||||
| * @task disable Disabling Protection | * @task disable Disabling Protection | ||||
| * @task manage Managing Write Guards | * @task manage Managing Write Guards | ||||
| * @task internal Internals | * @task internal Internals | ||||
| */ | */ | ||||
| final class AphrontWriteGuard { | final class AphrontWriteGuard extends Phobject { | ||||
| private static $instance; | private static $instance; | ||||
| private static $allowUnguardedWrites = false; | private static $allowUnguardedWrites = false; | ||||
| private $callback; | private $callback; | ||||
| private $allowDepth = 0; | private $allowDepth = 0; | ||||
| ▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines | |||||