Install tasks

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
vision
Posts: 23
Joined: 01 Dec 2022, 05:35

Install tasks

Post by vision » 15 Jun 2023, 11:33

Hello!

I want to override aimeos install tasks via creating "/setup" folder with my own tasks in my aimeos-laravel extension. But it doesn't work.

Then I did it via ExtensionServiceProvider and it works:

Code: Select all

$this->publishes([
            __DIR__ . '/setup' => base_path() . '/vendor/aimeos/aimeos-core/setup',
], 'my-aimeos-tasks');
The same with "/views":

Code: Select all

$this->publishes([
            __DIR__ . '/views' => base_path() . '/vendor/aimeos/aimeos-laravel/src/views',
], 'aimeos-views');
Is there a better way to solve this?

User avatar
aimeos
Administrator
Posts: 7926
Joined: 01 Jan 1970, 00:00

Re: Install tasks

Post by aimeos » 16 Jun 2023, 07:59

You can't overwrite them and can only add new ones that are executed before or after an existing task (according to the dependencies you've configured).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply