teleport icon indicating copy to clipboard operation
teleport copied to clipboard

Abstract Base Package Name

Open FuzzicalLogic opened this issue 9 years ago • 0 comments

Allows for custom names in extended implementations. If it becomes desirable to include naming logic in the library, this will additionally make it easier to do so. The purpose behind this change is to allow for extensions of different types to choose a different naming scheme based on a development/release path. For instance, for an extra, the site profile is not nearly as important as it is for a site backup or transfer.

Sample Extension:

class ExtractExtra extends Teleport\Action\Extract {
    protected function getName() {
    // No profile prefix
        return $this->tpl['name'];
    }
}

FuzzicalLogic avatar Aug 11 '15 09:08 FuzzicalLogic