-
Notifications
You must be signed in to change notification settings - Fork 3
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
pictures preview #94
base: master
Are you sure you want to change the base?
pictures preview #94
Conversation
@@ -142,4 +145,29 @@ protected function createComponentPdfGallery(): PdfGalleryControl | |||
{ | |||
return new PdfGalleryControl($this->getContext()); | |||
} | |||
|
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.
Tymto sa odrezáva vo všetkých presenteroch akcia preview, čo je veľmi, zlé ak by ju niekto chcel výhladovo použiť.
Ak sa takto nejaká akcia vyčlení (čo je zlý koncpet), tak sa má zafixovať, že že ju nikto neprepíše pomocou final
Každopádne riešenie tohoto je spraviť samostaný presenter, ktorý bude rešiť len fotky.
app/Modules/Core/BasePresenter.php
Outdated
|
||
private readonly string $wwwDir; | ||
|
||
public function injectWwwDir(Container $container): void |
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.
Načo? V presenteri je DI kontainer dostupný.
'width' => $imageInfo[0], | ||
'height' => $imageInfo[1], | ||
]; | ||
if (strpos($wwwPath, '/media/') === 0) { |
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.
No description provided.