Ejemplo n.º 1
0
 public function __construct(Transformable $inner, array $args = [])
 {
     parent::__construct($inner, $args);
     $ttl = $this->options()->get('cache')->options()->get('ttl');
     $this->options()->force('ttl2', function ($number) use($ttl) {
         return is_int($number) && $number > $ttl;
     });
 }