Skip to content

Commit

Permalink
Merge pull request #30 from philippebeck/dev
Browse files Browse the repository at this point in the history
Release 0.4.7
  • Loading branch information
philippebeck authored Jul 16, 2019
2 parents 37bdfec + 9071771 commit c7b825e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pjs/pam",
"version": "0.4.6",
"version": "0.4.7",
"type": "project",
"description": "Php Approachable Microframework",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions core/Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public function url(string $page, array $params = [])
*/
public function redirect(string $page, array $params = [])
{
return header('Location: ' . $this->url($page, $params));
header('Location: ' . $this->url($page, $params));
exit;
}

/**
Expand All @@ -81,7 +82,7 @@ public function render(string $view, array $params = [])
public function upload($fileDir)
{
$file = filter_var_array($_FILES['file']);
$destination = "__DIR__ . {$fileDir}/{$file['name']}";
$destination = "{$fileDir}/{$file['name']}";

try {
if (!isset($file['error']) || is_array($file['error'])) {
Expand Down
3 changes: 0 additions & 3 deletions core/Controller/CookieController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ public function deleteCookie(string $name)
if (filter_var($this->cookie[$name]) !== null) {

$this->createCookie($name, '', time() - 3600);

return true;
}
return false;
}

/**
Expand Down
3 changes: 0 additions & 3 deletions core/View/CookieTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ public function readAlert()
if ($this->alert !== null) {

setcookie('alert', '', time() - 3600, '/');

return true;
}
return false;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions project/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"type": "website",
"autoload": {
"psr-4": {
"App\\": "src/",
"Pam\\": "vendor/pjs/pam/"
"App\\": "src/"
}
},
"require": {
"pjs/pam": "^0.3.0"
"pjs/pam": "0.x"
},
"config": {
"platform": {
Expand Down

0 comments on commit c7b825e

Please sign in to comment.