-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/d 10 readiness #343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
We should go for just core_version_requirement: ^10
in custom modules to keep things clean.
web/modules/custom/hoeringsportal_data/src/Controller/Api/ApiController.php
Show resolved
Hide resolved
web/modules/custom/hoeringsportal_data/src/Controller/Api/HearingController.php
Show resolved
Hide resolved
web/modules/custom/hoeringsportal_data/src/Controller/Api/HearingController.php
Show resolved
Hide resolved
web/modules/custom/hoeringsportal_project_timeline/assets/public/build/manifest.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a comment.
$documents[] = $destination; | ||
} | ||
|
||
foreach (glob($document_source_path . '/*.docx') as $document) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code duplicates the PDF stuff above. Consider rewriting to
$extensions = ['pdf', 'docx'];
foreach ($extensions as $extension) {
foreach (glob($document_source_path . '/*.' . $extension) as $document) {
$destination = $this->fileSystem->copy($document, $document_target_path . '/' . basename($document), FileSystemInterface::EXISTS_REPLACE);
$documents[] = $destination;
}
}
https://jira.itkdev.dk/browse/HRIN-754
Preparing for d 10.