adlarge / fixtures-documentation-bundle Goto Github PK
View Code? Open in Web Editor NEWSymfony bundle to generate and expose a documentation of your fixtures.
License: MIT License
Symfony bundle to generate and expose a documentation of your fixtures.
License: MIT License
For now only scalar propertie for addFIxtureEntity are documented. We want to be able to auto document complex objects like arrays, Collection and other linked entities if it's described in config
With doctrine, detect PostCommit to automatically create fixture in documentation with the newly created entity
The use of process to launch command get a deprecated warning. Change the invocation with a string and use an array
entities
must be configEntities
When enableAutoDocumentation option set to true, I expect to not fullfill configEntities with all entities and their properties. Its really annoying ;) but the bundle to get all properties and autolink to linked entities.
Hope you could simplify it :)
The goal is to be able to reference an entity in another entity when building doc and, in the resulting doc, to have a link toward the references entity in the page
$doc->addFixture('Products', [ 'id' => 2, 'name' => 'Product 2', 'customer' => $doc->makeLink('Customer', 1) ]);
For alixe fixture load for example we don't have the same command to listen, add in the config a way to set the command to listen
listenedCommand: 'php bin/console doctrine:fixtures:load'
must be listenedCommand: 'doctrine:fixtures:load'
Please provide an example for hautelook:fixture:load too.
The goal is to be able to
Example :
in entities.yaml
`
To be able to dev and test an easier way
In FixturesDocumentationManager.php, path to var directory is hardcoded.
It leads to a bug on our system as this directory is not writable, and cache dir is set to another location outside project.
$this->jsonFilePath = $this->projectDir . '/var/' . self::FILE_NAME;
Could you change it to "%kernel.cache_dir%" or something similar (or provide a way to configure the path of the path) ?
Fixtures class seems to be listed in reverse alphabetical order in generated index.
Will be better if it is not reversed ? ;)
To better "sell" this useful bundle, maybe it could be interesting to show the auto config first (autoDoc in #21). And all other options could be after or in a dedicated MD file, so the first page is more light.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.