ZF\Apigility\Admin\Model\ModuleEntity::determineVendorStatus PHP Method

determineVendorStatus() protected method

Use ReflectionClass to determine the filename, and then checks if the module lives in a vendor subdirectory.
protected determineVendorStatus ( )
    protected function determineVendorStatus()
    {
        $r = new ReflectionClass($this->namespace . '\\Module');
        $filename = $r->getFileName();
        if (preg_match('#[/\\\\]vendor[/\\\\]#', $filename)) {
            $this->isVendor = true;
            return;
        }
        $this->isVendor = false;
    }