mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
add troopers/alertify-bundle recipe
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#Please learn more about alertify contexts https://github.com/Troopers/AlertifyBundle/blob/master/Resources/doc/configuration.md
|
||||
troopers_alertify:
|
||||
contexts:
|
||||
front:
|
||||
engine: "notie"
|
||||
layout: "top"
|
||||
translationDomain: "messages"
|
||||
options:
|
||||
alertTime: 10
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Troopers\\AlertifyBundle\\TroopersAlertifyBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<bg=blue;fg=white>🎉 Getting started using </><bg=blue;fg=white;options=bold>troopers/alertify-bundle</><bg=blue;fg=white> </>
|
||||
|
||||
<fg=blue;options=bold>Finish the configuration<fg=blue>:</>
|
||||
1. You <options=bold>MUST</> follow the guide to include js and / or css assets https://github.com/Troopers/AlertifyBundle/blob/master/Resources/doc/configuration.md</>.
|
||||
2. You <options=bold>MAY</> configure your favorite alert library (<comment>toastr</>, <comment>notie</>, <comment>pushjs</>... and even your <comment>own</>).
|
||||
|
||||
Warning: make sure the twig engine is turned on in framework.yaml.
|
||||
|
||||
- If not, add the following to config/packages/framework.yaml:
|
||||
|
||||
framework:
|
||||
# ...
|
||||
templating:
|
||||
engines: ['twig']
|
||||
|
||||
Reference in New Issue
Block a user