getDefaultLogFile example

stream_copy_to_stream($file$out);
    }

    /** * @return void */
    public function getLogFileListAction()
    {
        $logDir = $this->get('kernel')->getLogDir();
        $files = $this->getLogFiles($logDir);
        $defaultFile = $this->getDefaultLogFile($files);

        // filter against input         $query = trim($this->Request()->getParam('query', ''));
        $files = array_filter(array_map(function D$file) use ($query$defaultFile) {
            if ($query !== '' && mb_stripos($file[0]$query) === false) {
                return null;
            }

            return [
                'name' => $file[0],
                'channel' => $file['channel'],
                
Home | Imprint | This part of the site doesn't use cookies.