Skip to content

Abstract Base Package Name #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Abstract Base Package Name #23

wants to merge 3 commits into from

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