Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firewall
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
firewall
Commits
a671004d
Commit
a671004d
authored
3 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Compatibility with Symfony 4+
parent
80cc17e4
No related branches found
No related tags found
1 merge request
!7
1.3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Civi/Firewall/Services.php
+6
-2
6 additions, 2 deletions
Civi/Firewall/Services.php
docs/releasenotes.md
+1
-0
1 addition, 0 deletions
docs/releasenotes.md
info.xml
+1
-1
1 addition, 1 deletion
info.xml
with
8 additions
and
3 deletions
Civi/Firewall/Services.php
+
6
−
2
View file @
a671004d
...
...
@@ -22,8 +22,12 @@ class Services {
public
static
function
registerServices
(
ContainerBuilder
$container
)
{
$container
->
addResource
(
new
\Symfony\Component\Config\Resource\FileResource
(
__FILE__
));
$container
->
setDefinition
(
'firewall_fraudulent_request'
,
new
Definition
(
'\Civi\Firewall\Listener\FraudulentRequest'
));
$container
->
setDefinition
(
'firewall_invalidcsrf_request'
,
new
Definition
(
'\Civi\Firewall\Listener\InvalidCSRFRequest'
));
$container
->
setDefinition
(
'firewall_fraudulent_request'
,
new
Definition
(
'\Civi\Firewall\Listener\FraudulentRequest'
))
->
setPublic
(
TRUE
);
$container
->
setDefinition
(
'firewall_invalidcsrf_request'
,
new
Definition
(
'\Civi\Firewall\Listener\InvalidCSRFRequest'
))
->
setPublic
(
TRUE
);
foreach
(
self
::
getListenerSpecs
()
as
$listenerSpec
)
{
$container
->
findDefinition
(
'dispatcher'
)
->
addMethodCall
(
'addListenerService'
,
$listenerSpec
);
...
...
This diff is collapsed.
Click to expand it.
docs/releasenotes.md
+
1
−
0
View file @
a671004d
...
...
@@ -12,6 +12,7 @@ Releases use the following numbering system:
## 1.3 (not yet released)
*
Convert Firewall to use non-static methods and provide a "reason" string on failure.
*
Fix
[
#17
](
https://lab.civicrm.org/extensions/firewall/-/issues/17
)
Compatibility with Symfony 4+.
## 1.2.1
...
...
This diff is collapsed.
Click to expand it.
info.xml
+
1
−
1
View file @
a671004d
...
...
@@ -15,7 +15,7 @@
<url
desc=
"Support"
>
https://mjw.pt/support/firewall
</url>
<url
desc=
"Licensing"
>
http://www.gnu.org/licenses/agpl-3.0.html
</url>
</urls>
<releaseDate>
2021-11-
03
</releaseDate>
<releaseDate>
2021-11-
11
</releaseDate>
<version>
1.3-dev
</version>
<develStage>
stable
</develStage>
<compatibility>
...
...
This diff is collapsed.
Click to expand it.
mattwire
@mattwire
mentioned in issue
#17 (closed)
·
3 years ago
mentioned in issue
#17 (closed)
mentioned in issue #17
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment