Nette\DI\Extensions\DecoratorExtension::findByType PHP Method

findByType() private method

private findByType ( $type )
    private function findByType($type)
    {
        $type = ltrim($type, '\\');
        return array_filter($this->getContainerBuilder()->getDefinitions(), function ($def) use($type) {
            return is_a($def->getClass(), $type, TRUE) || is_a($def->getImplement(), $type, TRUE);
        });
    }