App\Console\Commands\Trash::bins PHP Method

bins() protected method

option 에 의해 지정된 휴지통의 class 를 반환
protected bins ( array $names ) : array
$names array recycle bin name
return array
    protected function bins($names)
    {
        /** @var \Xpressengine\Trash\TrashManager $trashManager */
        $trashManager = app('xe.trash');
        $bins = [];
        if ($names !== null) {
            foreach (explode(',', $names) as $name) {
                $bins[] = $trashManager->get($name);
            }
        } else {
            $bins = $trashManager->bins();
        }
        if (count($bins) == 0) {
            $this->error('There is no recycle bin to be processed.');
        }
        return $bins;
    }