for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AssetManager\Core\Resolver;
trait LfiProtectionTrait
{
/**
* Flag indicating whether or not LFI protection for rendering view scripts is enabled
*
* @var bool
*/
protected $lfiProtectionOn = true;
* Set LFI protection flag
* @param bool $flag
* @return void
public function setLfiProtection($flag)
$this->lfiProtectionOn = (bool) $flag;
}
* Return status of LFI protection flag
* @return bool
public function isLfiProtectionOn()
return $this->lfiProtectionOn;