src/Trident/Module/FrameworkModule/Console/Command/AssetsInstallCommand.php
private function flushAssets(\TridentKernel $kernel, OutputInterface $output)
    {
        $filesystem = new FileSystem();

        $output->write('Clearing existing assets');

        try {
            if ($filesystem->exists($kernel->getAssetDir())) {
                $filesystem->remove($kernel->getAssetDir());
            }

            $output->writeln('... <info>Done</info>');
            $output->writeln('');

            return true;
        } catch (\Exception $e) {
            $output->writeln('... <error>Error</error>');
            $output->writeln('');

            return false;
        }
    }
private function flushAssets(\TridentKernel $kernel, OutputInterface $output)
    {
        $filesystem = new FileSystem();

        $output->write('Clearing existing assets');

        try {
            if ($filesystem->exists($kernel->getAssetDir())) {
                $filesystem->remove($kernel->getAssetDir());
            }

            $output->writeln('... <info>Done</info>');
            $output->writeln('');

            return true;
        } catch (\Exception $e) {
            $output->writeln('... <error>Error</error>');
            $output->writeln('');

            return false;
        }
    }
private function flushAssets ( \ TridentKernel $ kernel , OutputInterface $ output ) { $ filesystem = new FileSystem ( ) ; $ output -> write ( 'Clearing existing assets' ) ; try { if ( $ filesystem -> exists ( $ kernel -> getAssetDir ( ) ) ) { $ filesystem -> remove ( $ kernel -> getAssetDir ( ) ) ; } $ output -> writeln ( '... <info>Done</info>' ) ; $ output -> writeln ( '' ) ; return true ; } catch ( \ Exception $ e ) { $ output -> writeln ( '... <error>Error</error>' ) ; $ output -> writeln ( '' ) ; return false ; } }
Flush all existing assets

@param TridentKernel   $kernel
@param OutputInterface $output

@return boolean
Flush all existing assets