src/Composition.php
public function apply($context = null)
    {
        if (null === $this->core) {
            throw new Exception('Core is undefined');
        }

        $this->context = $context;
        return $this->compile()->stack[0]($context);
    }
public function apply($context = null)
    {
        if (null === $this->core) {
            throw new Exception('Core is undefined');
        }

        $this->context = $context;
        return $this->compile()->stack[0]($context);
    }
Apply/run composition

@param mixed $context
@return mixed