pyrocms / documentation

This repository exists only to accept and discuss bettering documentation.
0 stars 0 forks source link

Module/Seeding #1

Open liviumalvin opened 9 years ago

liviumalvin commented 9 years ago

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 commented 9 years ago

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