src/Routable.php
public function ready($callable=null)
    {
        if (is_null($callable)) {
            return $this->readyPrepares;
        }
        
        $this->readyPrepares[] = new CallableDeferred($callable, $this->container);
        
        return $this;
    }
public function ready($callable=null)
    {
        if (is_null($callable)) {
            return $this->readyPrepares;
        }
        
        $this->readyPrepares[] = new CallableDeferred($callable, $this->container);
        
        return $this;
    }
设置或获取当route被实例化时，会被执行的行为

@param callable|string $callable The callback routine

@return static