Refactored Store.

This commit is contained in:
Dmitry Khomutov 2018-03-04 14:30:34 +07:00
commit 8b5a874789
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
44 changed files with 397 additions and 424 deletions

View file

@ -45,7 +45,7 @@ abstract class Plugin
$this->build = $build;
$this->options = $options;
if (!empty($options['priority_path']) && in_array($options['priority_path'], ['global', 'system'])) {
if (!empty($options['priority_path']) && in_array($options['priority_path'], ['global', 'system'], true)) {
$this->priorityPath = $options['priority_path'];
}
@ -83,6 +83,14 @@ abstract class Plugin
return $this->builder;
}
/**
* @return string
*/
public function getPriorityPath()
{
return $this->priorityPath;
}
/**
* @return boolean
*/