-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Refactor #1
Commits on Jun 13, 2020
-
[BC BREAK] remove static ModelFactory methods:
- make() - makeMany() - create() - createMany()
Configuration menu - View commit details
-
Copy full SHA for 3e188b5 - Browse repository at this point
Copy the full SHA 3e188b5View commit details -
[BC BREAK] rename Factory methods:
- persist() -> create() - persistMany() -> createMany()
Configuration menu - View commit details
-
Copy full SHA for 0b91249 - Browse repository at this point
Copy the full SHA 0b91249View commit details
Commits on Jun 17, 2020
-
[BC BREAK] refactor instantiator:
- by default, use symfony/property-access to set values and disallow extra properties - attribute keys can be prefixed with "optional:" to ignore - attribute keys can be prefixed with "force:" to "force set" their value to properties directly - add option to disable constructor - add option to always allow extra attributes - add option to always "force set" attributes
Configuration menu - View commit details
-
Copy full SHA for 7b5d2b5 - Browse repository at this point
Copy the full SHA 7b5d2b5View commit details -
[bug] refactor ModelFactory::initialize()
- remove self return type, add return static to docblock - ensure instance of current factory is returned
Configuration menu - View commit details
-
Copy full SHA for a27a1b4 - Browse repository at this point
Copy the full SHA a27a1b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e592da5 - Browse repository at this point
Copy the full SHA e592da5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9170214 - Browse repository at this point
Copy the full SHA 9170214View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63f9c99 - Browse repository at this point
Copy the full SHA 63f9c99View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1a79ba - Browse repository at this point
Copy the full SHA f1a79baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24fa5d4 - Browse repository at this point
Copy the full SHA 24fa5d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8201a5d - Browse repository at this point
Copy the full SHA 8201a5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ae9b0c - Browse repository at this point
Copy the full SHA 3ae9b0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49d94b3 - Browse repository at this point
Copy the full SHA 49d94b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71d1d49 - Browse repository at this point
Copy the full SHA 71d1d49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14f5bcb - Browse repository at this point
Copy the full SHA 14f5bcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24ea355 - Browse repository at this point
Copy the full SHA 24ea355View commit details
Commits on Jun 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 241ce9b - Browse repository at this point
Copy the full SHA 241ce9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1226f05 - Browse repository at this point
Copy the full SHA 1226f05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18036d6 - Browse repository at this point
Copy the full SHA 18036d6View commit details -
[BC BREAK] remove Factory::instantiate() and instantiateMany() - alte…
…rnative: - $factory->withoutPersisting()->create()->object() - array_map(fn($p) => $p->object(), $factory->withoutPersisting()->createMany())
Configuration menu - View commit details
-
Copy full SHA for 8f80ac1 - Browse repository at this point
Copy the full SHA 8f80ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 020d84c - Browse repository at this point
Copy the full SHA 020d84cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 29115d8 - Browse repository at this point
Copy the full SHA 29115d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c30982f - Browse repository at this point
Copy the full SHA c30982fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 80922f0 - Browse repository at this point
Copy the full SHA 80922f0View commit details
Commits on Jun 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1a8f4c8 - Browse repository at this point
Copy the full SHA 1a8f4c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 945df0d - Browse repository at this point
Copy the full SHA 945df0dView commit details -
[wip] refactor to require bundle:
- make Manager constructor arguments required - remove Manager::boot() - make Manager/StoryManager services - call Factory::boot() in ZenstruckFoundryBundle::boot()
Configuration menu - View commit details
-
Copy full SHA for 94ae895 - Browse repository at this point
Copy the full SHA 94ae895View commit details -
[feature] autoconfigure Story services:
- add test to ensure stories as services are loaded correctly
Configuration menu - View commit details
-
Copy full SHA for 9bd2742 - Browse repository at this point
Copy the full SHA 9bd2742View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc84794 - Browse repository at this point
Copy the full SHA bc84794View commit details -
[bug] remove injecting Manager into Proxy:
- proxies created in global state would have a different "Manager" than the one used in your tests causing the om to think these were not persisted. Always grabbing the current manager from Factory::manager() solves this. - also removed injecting into RepositoryProxy to be consistent.
Configuration menu - View commit details
-
Copy full SHA for 9dde476 - Browse repository at this point
Copy the full SHA 9dde476View commit details -
[minor] rename Test/Configuration to Test/TestState:
- using without bundle must be explicitly configured
Configuration menu - View commit details
-
Copy full SHA for be65422 - Browse repository at this point
Copy the full SHA be65422View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b036c3 - Browse repository at this point
Copy the full SHA 9b036c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 523e025 - Browse repository at this point
Copy the full SHA 523e025View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30ee6a9 - Browse repository at this point
Copy the full SHA 30ee6a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7a53fb - Browse repository at this point
Copy the full SHA f7a53fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c85ec3e - Browse repository at this point
Copy the full SHA c85ec3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01e4069 - Browse repository at this point
Copy the full SHA 01e4069View commit details -
Configuration menu - View commit details
-
Copy full SHA for 651190f - Browse repository at this point
Copy the full SHA 651190fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90b1709 - Browse repository at this point
Copy the full SHA 90b1709View commit details
Commits on Jun 23, 2020
-
Configuration menu - View commit details
-
Copy full SHA for ee4c18e - Browse repository at this point
Copy the full SHA ee4c18eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 833434a - Browse repository at this point
Copy the full SHA 833434aView commit details -
[minor] rename Factory::instantiate() to instantiateWith()
Makes the method a bit clearer.
Configuration menu - View commit details
-
Copy full SHA for 84919b8 - Browse repository at this point
Copy the full SHA 84919b8View commit details -
[minor] refactor Proxy auto-refresh methods
- rename withAutoRefresh() to enableAutoRefresh() - rename withoutAutoRefresh() to disableAutoRefresh() - add withoutAutoRefresh(callable) to disable before executing callback and re-enable after - withoutAutoRefresh's closure takes the Proxy by default, but if its type-hint is the wrapped object, it is passed
Configuration menu - View commit details
-
Copy full SHA for 3007559 - Browse repository at this point
Copy the full SHA 3007559View commit details -
[minor] split RepositoryProxy::randomSet() into randomSet/randomRange
- also split ModelFactory::randomSet() into randomSet/randomRange
Configuration menu - View commit details
-
Copy full SHA for 3b7d753 - Browse repository at this point
Copy the full SHA 3b7d753View commit details -
[minor] default makers to generate in src/
add --test option to generate in tests/
Configuration menu - View commit details
-
Copy full SHA for 9fb946c - Browse repository at this point
Copy the full SHA 9fb946cView commit details -
Configuration menu - View commit details
-
Copy full SHA for de504d7 - Browse repository at this point
Copy the full SHA de504d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f52111a - Browse repository at this point
Copy the full SHA f52111aView commit details
Commits on Jun 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6890d12 - Browse repository at this point
Copy the full SHA 6890d12View commit details -
Configuration menu - View commit details
-
Copy full SHA for b99482d - Browse repository at this point
Copy the full SHA b99482dView commit details
Commits on Jul 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e76b82f - Browse repository at this point
Copy the full SHA e76b82fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cb4b31 - Browse repository at this point
Copy the full SHA 1cb4b31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 874381e - Browse repository at this point
Copy the full SHA 874381eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b69f3e - Browse repository at this point
Copy the full SHA 1b69f3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a7f48a - Browse repository at this point
Copy the full SHA 6a7f48aView commit details