DataSift\Storyplayer\PlayerLib\Prose_Loader::setNamespaces PHP Method

setNamespaces() public method

public setNamespaces ( $namespaces = [] ) : void
return void
    public function setNamespaces($namespaces = array())
    {
        // a list of the namespaces we're going to search for this class
        //
        // we always search the generic 'Prose' namespace first, in case
        // users don't want to uniquely namespace their Prose classes
        $this->namespaces = array("Prose");
        // append the namespaces we've been asked to search
        foreach ($namespaces as $namespace) {
            $this->namespaces[] = $namespace;
        }
        // we search our own namespace last, as it allows the user to
        // replace our Prose with their own if they prefer
        $this->namespaces[] = "DataSift\\Storyplayer\\Prose";
    }