neos / flow-development-collection

The unified repository containing the Flow core packages, used for Flow development.
https://flow.neos.io/
MIT License
138 stars 188 forks source link

An installation without a configured database should be a supported feature #1038

Open albe opened 7 years ago

albe commented 7 years ago

Currently, if no database is configured, a whole lot of things don't work out correctly because there are a bunch of places that just assume a datbase is configured and available.

It should be possible to run a Flow installation completely without any database configured. Only if features that inevitably require a database, like Entities, are used, Flow should error out.

Some places that currently use the persistence layer to some extent (not necessarily failing without configured database):

Not sure how to best approach this best, but I could imagine doing some compile-time check if a database is configured and store that information accessibly. If not switch to a mode that avoids using persistence layer where possible and fails with a clear message where not (for example when persistenceManager->persistAll() is called - see #1037).

sorenmalling commented 7 years ago

My ticket is sort of related to this For reference: #1077