Airship\Engine\Bolt\Supplier::getSupplierDontCache PHP Method

getSupplierDontCache() public method

For objects that don't bother caching
public getSupplierDontCache ( string $supplier ) : Supplier
$supplier string
return Airship\Engine\Continuum\Supplier
    public function getSupplierDontCache(string $supplier) : SupplierObject
    {
        $supplier = $this->escapeSupplierName($supplier);
        if (!\file_exists(ROOT . '/config/supplier_keys/' . $supplier . '.json')) {
            throw new NoSupplier(\__("Supplier not found: %s", "default", ROOT . '/config/supplier_keys/' . $supplier . '.json'));
        }
        $data = \Airship\loadJSON(ROOT . '/config/supplier_keys/' . $supplier . '.json');
        return new SupplierObject($supplier, $data);
    }