Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-mlc
kohinos
Commits
5b7584bb
Commit
5b7584bb
authored
Nov 17, 2020
by
Mathieu Poisbeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GlobalParameter: add WORDPRESS_URL param to deal with the WP Api
parent
5df85678
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
dev-fixture.yaml
fixtures/test/dev-fixture.yaml
+4
-0
GlobalParameter.php
src/Entity/GlobalParameter.php
+1
-0
GlobalConfigurationFormType.php
src/Form/Type/GlobalConfigurationFormType.php
+10
-0
No files found.
fixtures/test/dev-fixture.yaml
View file @
5b7584bb
...
...
@@ -639,6 +639,10 @@ App\Entity\GlobalParameter:
name
:
"
USE_PAYZEN"
value
:
'
true'
mandatory
:
1
gp16
:
name
:
"
WORDPRESS_URL"
value
:
'
'
mandatory
:
0
App\Entity\Siege
:
siege_1
:
...
...
src/Entity/GlobalParameter.php
View file @
5b7584bb
...
...
@@ -29,6 +29,7 @@ class GlobalParameter
const
MAP_ZOOM
=
'MAP_ZOOM'
;
const
USE_PAYZEN
=
'USE_PAYZEN'
;
const
APP_TITLE
=
'APP_TITLE'
;
const
WORDPRESS_URL
=
'WORDPRESS_URL'
;
/**
* @ORM\Id()
...
...
src/Form/Type/GlobalConfigurationFormType.php
View file @
5b7584bb
...
...
@@ -18,6 +18,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
use
Symfony\Component\Validator\Constraints\Email
as
EmailConstraint
;
use
Symfony\Component\Validator\Constraints\Type
as
TypeConstraint
;
use
Symfony\Component\Validator\Constraints\Regex
as
RegexConstraint
;
use
Symfony\Component\Validator\Constraints\Url
as
UrlConstraint
;
class
GlobalConfigurationFormType
extends
AbstractType
{
...
...
@@ -134,6 +135,15 @@ class GlobalConfigurationFormType extends AbstractType
],
'help'
=>
'Si cette option est activée (true), les utilisateurs pourront cotiser et acheter de la monnaie locale par CB sur l\'application.'
))
->
add
(
'wordpressurl'
,
GlobalParameterType
::
class
,
array
(
'label'
=>
"URL du site Wordpress :"
,
'name_param'
=>
GlobalParameter
::
WORDPRESS_URL
,
'_placeholder'
=>
'https://mon-wordpress-mlcc.fr'
,
'constraints_param'
=>
[
new
UrlConstraint
([
'message'
=>
'URL invalide !'
])
],
'help'
=>
"Si une URL Wordpress est renseignée, la synchronisation des prestataires (de Kohinos vers Wordpress) pourra se faire."
))
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment