public function when($template, callable $callback)
    {
        if (\is_array($template)) {
            foreach ($template as $current) {
                static::$composers[ $current ][] = $callback;
            }

            return;
        }

        static::$composers[ $template ][] = $callback;
    }