Skip to content

Conversation

@Hackwar
Copy link
Collaborator

@Hackwar Hackwar commented Apr 16, 2025

This moves the copying of media files into the build folder from the Media class into the base class. This should make the code just simpler and less over-engineered. Right now the file extension type does not feel correct.

->run();

$this->addFiles('media', $media->getResultFiles());
$this->buildMediaFiles('tpl_' . $this->templateName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$this->buildMediaFiles('tpl_' . $this->templateName);
$this->buildMediaFiles($this->templateName);

templates don't use the tpl_ prefix

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just handing in the name of the extension and the prefix lets the system discover which type it is. In this case, the tpl_ is necessary.

@HLeithner
Copy link
Member

you removed the media folder for file but not the language? ok I looked at the file adapter and it's actually a copy of the component thing, I think you can strip it down completely to only support scripts.php and the rest can be removed (in a different pr).

@Hackwar
Copy link
Collaborator Author

Hackwar commented Apr 17, 2025

Yes, the File type currently is fubar, but that shouldn't stop this PR. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants