Skip to content

Conversation

FuzzicalLogic
Copy link

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'];
    }
}

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. 

Sample Extension:

class ExtractExtra extends \Teleport\Action\Extract {
    protected function getName() {
    // No profile prefix
        return $this->tpl['name'];
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant