src/Viserio/Component/View/ViewFactory.php
public function share($key, $value = null)
    {
        $keys = \is_array($key) ? $key : [$key => $value];

        foreach ($keys as $k => $v) {
            $this->shared[$k] = $v;
        }

        return $value;
    }
public function share($key, $value = null)
    {
        $keys = \is_array($key) ? $key : [$key => $value];

        foreach ($keys as $k => $v) {
            $this->shared[$k] = $v;
        }

        return $value;
    }
{@inheritdoc}