Skip to content
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

Module/Seeding #1

Open
liviumalvin opened this issue Aug 20, 2015 · 1 comment
Open

Module/Seeding #1

liviumalvin opened this issue Aug 20, 2015 · 1 comment

Comments

@liviumalvin
Copy link

If you need to seed a module this is how you do it:

Create a class which extends Anomaly\Streams\Platform\Database\Seeder\Seeder in the module directory : module-module/ModuleModuleSeeder.php

You can use this class to handle the seeding directly, or you can use $this->call(FooBarSeeder::class) (where FooBarSeeder can be a class which also extends the Anomaly Seeder specified above and which would reside in your module src directory using for example the following pattern src/Database/Seed/FooBarSeeder.php )

@RyanThompson
Copy link
Member

I think this will be mentioned in the modules area but this is where I plan on putting it: https://github.com/anomalylabs/streams-platform/blob/1.0/develop/docs/docs.json#L45

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

No branches or pull requests

2 participants