My first experiments with Symfony 4. ...became a kind of boilerplate
This contains:
-
FOSUserBundle
-
EasyAdmin
-
KNP-Menu-Bundle (bootstrap 4 menu)
-
BootStrap 4 Templates for FOSUserBundle
-
Bootstrap4, JQuery, Propper, Fontsawesome local (now npm or bower required)
Tbh. most is copy/paste But at least this project shows how to implement the bundles without the need to search for hours for solutions (like said before, I'm new to Symfony)
Composer is required
Old fashioned way - Clone the Git repo or downlod it
https://github.com/schnoog/Symf4Spielerei.git
git clone https://github.com/schnoog/Symf4Spielerei.git **TargetDir**
Change into the TargetDir and install the components
composer install
composer create-project schnoog/symf4spielerei <TargetDirectory>
The composer install script will replace a file in the Knp-Menu-Bundle every time
composer install
oder composer update
are called.
vendor/knplabs/knp-menu-bundle/src/DependencyInjection/Configuration.php
Find more about the problem here
cp .env .env.local
and fill in your data (database, mailserver....)
php bin/console doctrine:schema:create
php bin/console fos:user:create
php bin/console fos:user:promote
by setting the role ROLE_ADMIN