for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @author enea dhack <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Enea\Authorization\Drivers\Cache;
class CacheConfig
{
public static function getExpirationTime(): int
return (int) self::get('expiration-time', '1440');
}
private static function get(string $key, string $default = null): string
return (string) config("authorization.drivers.cache.{$key}", $default);