protected function getPath($resource)
{
$vendor = 'pagekit';
if ($resource == "system") {
$path = sprintf('%s/app/system', $this->container['path']);
} else {
$path = sprintf('%s/%s/%s', $this->container['path.packages'], $vendor, $resource);
}
if (!is_dir($path)) {
return false;
}
return $path;
}