Skip to content

Commit

Permalink
1.0.5, check changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Kaltofen committed Oct 10, 2018
1 parent c7dffed commit 1b34c6d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.0.5] - 2018-10-10

### Fixed
- `README` technical instruction section

## [1.0.4] - 2018-05-24

### Fixed
Expand Down
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -17,15 +17,15 @@ Use the following alternatives for contao `Input` or `Environment` calls

Contao | Request
---- | -----------
`\Input::get($strKey)` | `\Contao\System->getContainer->get('huh.request')->getGet($strKey)`
`\Input::post($strKey)` | `\Contao\System->getContainer->get('huh.request')->getPost($strKey)`
`\Input::postHtml($strKey)` | `\Contao\System->getContainer->get('huh.request')->getPostHtml($strKey)`
`\Input::postRaw($strKey)` | `\Contao\System->getContainer->get('huh.request')->getPostRaw($strKey)`
`\Input::setPost($strKey, $varValue)` | `\Contao\System->getContainer->get('huh.request')->setPost($strKey, $varValue)`
`\Input::setGet($strKey, $varValue)` | `\Contao\System->getContainer->get('huh.request')->setGet($strKey, $varValue)`
`isset($_GET[$strKey])` | `\Contao\System->getContainer->get('huh.request')->hasGet($strKey)`
`isset($_POST[$strKey])` | `\Contao\System->getContainer->get('huh.request')->hasPost($strKey)`
`\Environment::get('isAjaxRequest')` | `\Contao\System->getContainer->get('huh.request')->isXmlHttpRequest()`
`\Input::get($strKey)` | `\Contao\System->getContainer()->get('huh.request')->getGet($strKey)`
`\Input::post($strKey)` | `\Contao\System->getContainer()->get('huh.request')->getPost($strKey)`
`\Input::postHtml($strKey)` | `\Contao\System->getContainer()->get('huh.request')->getPostHtml($strKey)`
`\Input::postRaw($strKey)` | `\Contao\System->getContainer()->get('huh.request')->getPostRaw($strKey)`
`\Input::setPost($strKey, $varValue)` | `\Contao\System->getContainer()->get('huh.request')->setPost($strKey, $varValue)`
`\Input::setGet($strKey, $varValue)` | `\Contao\System->getContainer()->get('huh.request')->setGet($strKey, $varValue)`
`isset($_GET[$strKey])` | `\Contao\System->getContainer()->get('huh.request')->hasGet($strKey)`
`isset($_POST[$strKey])` | `\Contao\System->getContainer()->get('huh.request')->hasPost($strKey)`
`\Environment::get('isAjaxRequest')` | `\Contao\System->getContainer()->get('huh.request')->isXmlHttpRequest()`


## Insert tags
Expand All @@ -38,4 +38,4 @@ For convenience we provide insert tags for some request method parameters.
Insert tag | Description
--- | ---------
`{{request_get::*}}` | This tag will be replaced with the XSS protected value of the query parameter (replace * with the name of the query parameter, e.g. `auto_item`)
`{{request_post::*}}` | This tag will be replaced with the XSS protected value of the post parameter (replace * with the name of the post parameter, e.g. `FORM_SUBMIT`)
`{{request_post::*}}` | This tag will be replaced with the XSS protected value of the post parameter (replace * with the name of the post parameter, e.g. `FORM_SUBMIT`)
4 changes: 2 additions & 2 deletions tests/ContaoManager/PluginTest.php
Expand Up @@ -58,8 +58,8 @@ public function testGetBundles()

static::assertCount(1, $bundles);
static::assertInstanceOf(BundleConfig::class, $bundles[0]);
static::assertEquals(HeimrichHannotContaoRequestBundle::class, $bundles[0]->getName());
static::assertEquals([ContaoCoreBundle::class], $bundles[0]->getLoadAfter());
static::assertSame(HeimrichHannotContaoRequestBundle::class, $bundles[0]->getName());
static::assertSame([ContaoCoreBundle::class], $bundles[0]->getLoadAfter());
}

/**
Expand Down

0 comments on commit 1b34c6d

Please sign in to comment.