Closed Arturbox closed 1 year ago
$entry->getPathName()
shouldn't add a slash by default so the resulting absolute path should be:
/.../laravelapp/ext/testext/themes/client/html
If it's not, try to find out why so we can fix it if possible.
Custom extension name created with aimeos => optimize During composer update I am getting this error => ERROR Can't locate path: <ext/optimizethemes/client/html/>.
And the second question. I tried to redefine one of the Base abstract classes in different ways, but it doesn't work. If you help I will be grateful))
Here is manifest.php
Here is the structure
Tried to redefine as abstract class
I even tried to create a simple class that does extend from an abstract class but still does not redefine
Thanks in advance!
Custom extension name created with aimeos => optimize During composer update I am getting this error => ERROR Can't locate path: <ext/optimizethemes/client/html/>.
This usually happens if you add the files to Git and make a checkout of the repo afterwards (or use composer to install it) because Git doesn't add empty directories. Place a .gitkeep
file inside the empty directory and commit to Git to fix this.
gitkeep didn't help. I did everything again and moved the extension from the ext folder to packages and everything worked)) Thanks
Regarding your second question: You can't overwrite base classes, only the classes that uses that class.
aimeos/aimeos-laravel: 2022.10
In Aimeos\Shop\ShopServiceProvider boot method add slash in 'themes/client/html/' Result '/themes/client/html/'
if( file_exists( $basepath = base_path( 'ext' ) ) ) { foreach( new \DirectoryIterator( $basepath ) as $entry ) { if( $entry->isDir() && !$entry->isDot() && file_exists( $entry->getPathName() . '/themes/client/html' ) ) { $this->publishes( [$entry->getPathName() . 'themes/client/html/' => public_path( 'vendor/shop/themes' )], 'public' ); } } }