Skip to content

Commit

Permalink
see cl 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed Apr 16, 2021
1 parent 1765482 commit b865dcb
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 29 deletions.
23 changes: 21 additions & 2 deletions CHANGELOG.md
@@ -1,61 +1,80 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.2.1] - 2021-04-16

- fixed for contao 4.9

## [1.2.0] - 2021-03-10

- allow php 8

## [1.1.1] - 2020-12-04
- fixed wrong return values from xssClean methode due issue in core bundle ([#2468](https://github.com/contao/contao/issues/2468))

- fixed wrong return values from xssClean methode due issue in core
bundle ([#2468](https://github.com/contao/contao/issues/2468))

## [1.1.0] - 2020-03-03

### Fixed

- composer json for an insecure version of symfony/http-foundation

## [1.0.9] - 2020-03-03

### Fixed

- bundle for command line calls (null-checks for the request object)

## [1.0.8] - 2019-02-22

### Fixed
### Fixed

- typo in path to service yaml

## [1.0.7] - 2019-02-20

### Changed

- moved service config loading to Plugin class

### Fixed

- Added class alias for `@huh.request` service to fix symfony 4 compatibility

## [1.0.6] - 2018-10-23

### Fixed

- composer dependencies for contao 4.6

## [1.0.5] - 2018-10-10

### Fixed

- `README` technical instruction section

## [1.0.4] - 2018-05-24

### Fixed

- check if current request parameters are null

## [1.0.3] - 2018-03-23

### Fixed

- $request in construct

## [1.0.2] - 2018-03-22

### Fixed

- fixed call of `parent::__construct` with empty properties

## [1.0.1] - 2018-03-12

### Fixed

- removed `heimrichhannot/contao-utils-bundle` circular dependency
2 changes: 1 addition & 1 deletion src/Component/HttpFoundation/QueryParameterBag.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Component/HttpFoundation/Request.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down
5 changes: 1 addition & 4 deletions src/ContaoManager/Plugin.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand All @@ -28,9 +28,6 @@ public function getBundles(ParserInterface $parser)
/**
* Allows a plugin to load container configuration.
*
* @param LoaderInterface $loader
* @param array $managerConfig
*
* @throws \Exception
*/
public function registerContainerConfiguration(LoaderInterface $loader, array $managerConfig)
Expand Down
7 changes: 1 addition & 6 deletions src/EventListener/InsertTagsListener.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand All @@ -23,8 +23,6 @@ class InsertTagsListener
/**
* Replaces request insert tags.
*
* @param string $tag
*
* @return string|false
*/
public function onReplaceInsertTags(string $tag)
Expand All @@ -42,9 +40,6 @@ public function onReplaceInsertTags(string $tag)
/**
* Replaces a request-related insert tag.
*
* @param string $insertTag
* @param string $key
*
* @return string
*/
private function replaceRequestInsertTags(string $insertTag, string $key)
Expand Down
2 changes: 1 addition & 1 deletion src/HeimrichHannotContaoRequestBundle.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down
12 changes: 7 additions & 5 deletions src/Resources/config/services.yml
@@ -1,14 +1,16 @@
services:
_defaults:
public: true

huh.request.insertTagsListener:
class: HeimrichHannot\RequestBundle\EventListener\InsertTagsListener
public: true
arguments:
- '@contao.framework'
huh.request:
class: HeimrichHannot\RequestBundle\Component\HttpFoundation\Request
public: true

HeimrichHannot\RequestBundle\Component\HttpFoundation\Request:
arguments:
- '@contao.framework'
- '@request_stack'
- '@contao.routing.scope_matcher'
HeimrichHannot\RequestBundle\Component\HttpFoundation\Request: "@huh.request"

huh.request: '@HeimrichHannot\RequestBundle\Component\HttpFoundation\Request'
2 changes: 1 addition & 1 deletion tests/Component/HttpFoundation/PostTest.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Component/HttpFoundation/QueryParameterBagTest.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Component/HttpFoundation/RequestTest.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down
5 changes: 1 addition & 4 deletions tests/ContaoManager/PluginTest.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down Expand Up @@ -65,9 +65,6 @@ public function testGetBundles()
/**
* Mocks the plugin loader.
*
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expects
* @param array $plugins
*
* @return PluginLoader|\PHPUnit_Framework_MockObject_MockObject
*/
private function mockPluginLoader(\PHPUnit_Framework_MockObject_Matcher_InvokedCount $expects, array $plugins = [])
Expand Down
2 changes: 1 addition & 1 deletion tests/EventListener/InsertTagsListenerTest.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2021 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down

0 comments on commit b865dcb

Please sign in to comment.