parent
1cc169a7f1
commit
5b0e9eebdb
@ -1,23 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\CoreBundle\Component\Theme; |
||||
|
||||
use Symfony\Component\Filesystem\Filesystem; |
||||
|
||||
/** |
||||
* Class DumpTheme |
||||
*/ |
||||
class DumpTheme |
||||
{ |
||||
/** |
||||
* Dump files |
||||
*/ |
||||
public static function dumpCssFiles() |
||||
{ |
||||
$fs = new Filesystem(); |
||||
$appCss = __DIR__.'/../../../../../app/Resources/public/css'; |
||||
$newPath = __DIR__.'/../../../../../web/css'; |
||||
$fs->mirror($appCss, $newPath); |
||||
} |
||||
} |
@ -0,0 +1,33 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\CoreBundle\Composer; |
||||
|
||||
use Symfony\Component\Filesystem\Filesystem; |
||||
|
||||
/** |
||||
* Class DumpTheme |
||||
*/ |
||||
class ScriptHandler |
||||
{ |
||||
/** |
||||
* Dump files to the web/css folder |
||||
*/ |
||||
public static function dumpCssFiles() |
||||
{ |
||||
$appCss = __DIR__.'/../../../../app/Resources/public/css'; |
||||
$newPath = __DIR__.'/../../../../web/css'; |
||||
$fs = new Filesystem(); |
||||
$fs->mirror($appCss, $newPath); |
||||
} |
||||
|
||||
/** |
||||
* Delete old symfony folder before update (generates conflicts with composer) |
||||
*/ |
||||
public static function deleteOldFilesFrom19x() |
||||
{ |
||||
$path = __DIR__.'/../../../../main/inc/lib/symfony/'; |
||||
$fs = new Filesystem(); |
||||
$fs->remove($path); |
||||
} |
||||
} |
Loading…
Reference in new issue