Skip to content

Commit

Permalink
Merge pull request #10 from Khorsa/dev
Browse files Browse the repository at this point in the history
minor installation bags fix
  • Loading branch information
Khorsa committed Jun 14, 2021
2 parents 9949ecf + 030b64f commit 05655b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flexycms/flexyadminframe-bundle",
"version": "0.1.4.5",
"version": "0.1.4.6",
"type": "symfony-bundle",
"description": "Main frame for admin panel",
"license": "proprietary",
Expand Down
1 change: 0 additions & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
parameters:
# Здесь могут быть параметры бандла
panelMenuTemplate: "@@FlexyAdminFrame/panelmenu.html.twig"
uploads_path: '/public/uploads/embedded'

services:

Expand Down
9 changes: 6 additions & 3 deletions src/FlexyAdminFrameBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ public function build(ContainerBuilder $container)
#Options +FollowSymlinks
RewriteRule ^(.+)$ /public/ [QSA,L]";

$rootDir = __DIR__ . "../../../../..";
$rootDir = $container->getParameter('kernel.project_dir');

if (is_file($rootDir . "/.htaccess")) unlink($rootDir . "/.htaccess");
file_put_contents($rootDir . "/.htaccess", $htaccess);
dump($rootDir);

if (!is_file($rootDir . "/.htaccess")) {
file_put_contents($rootDir . "/.htaccess", $htaccess);
}

if (!is_dir($rootDir . "/public")) mkdir($rootDir . "/public");
if (!is_dir($rootDir . "/public/uploads")) mkdir($rootDir . "/public/uploads");
Expand Down

0 comments on commit 05655b0

Please sign in to comment.