CodeExplorer isManagedByComposer example
public function deleteApp(string
$technicalName): void
{ $apps =
$this->
load();
if (!
isset($apps[$technicalName])) { return;
} $manifest =
$apps[$technicalName];
if ($manifest->
isManagedByComposer()) { throw AppException::
cannotDeleteManaged($technicalName);
} (new Filesystem())->
remove($manifest->
getPath());
} public function loadFile(string
$appPath, string
$filePath): ?string
{ $path = Path::
join($appPath,
$filePath);
if ($path[0
] !== \DIRECTORY_SEPARATOR
) {