Componette

Componette

tomaskarlik

tomaskarlik / FileListControl 1.0.2

File list control for Nette

download-cloud-line composer require tomaskarlik/filelist

FileList

Install

Download package

composer require tomaskarlik/filelist

Register extension in config.neon

extensions:
	fileList: TomasKarlik\FileList\FileListControlExtension

Usage

<?php

namespace App\Module\SomeModule\Presenters;

use Nette\Application\UI\Presenter;
use TomasKarlik\FileList\FileListControl;
use TomasKarlik\FileList\FileListControlFactoryInterface;


final class ListPresenter extends Presenter
{

	private $factory;


	public function __construct(FileListControlFactoryInterface $factory)
	{
		$this->factory = $factory;
	}


	/**
	 * @return FileListControl
	 */
	protected function createComponentLogFileList()
	{
		$someDir = __DIR__;
		return $this->factory->create($someDir);
	}

}
{control logFileList}
bar-chart-fill

Statistics

download-cloud-fill
67
star-fill
0
bug-fill
0
flashlight-fill
3.3y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=5.6)
nette/di (~2.4.0)
latte/latte (^2.4.0)
nette/utils (^2.4.0)
Componette Componette felix@nette.org