src/Configuration/GrumPHP.php
public function getAsciiContentPath(string $resource)
    {
        if (null === $this->container->getParameter('ascii')) {
            return null;
        }

        $paths = $this->container->getParameter('ascii');
        if (!array_key_exists($resource, $paths)) {
            return null;
        }

        // Deal with multiple ascii files by returning one at random.
        if (\is_array($paths[$resource])) {
            shuffle($paths[$resource]);
            return reset($paths[$resource]);
        }

        return $paths[$resource];
    }
public function getAsciiContentPath(string $resource)
    {
        if (null === $this->container->getParameter('ascii')) {
            return null;
        }

        $paths = $this->container->getParameter('ascii');
        if (!array_key_exists($resource, $paths)) {
            return null;
        }

        // Deal with multiple ascii files by returning one at random.
        if (\is_array($paths[$resource])) {
            shuffle($paths[$resource]);
            return reset($paths[$resource]);
        }

        return $paths[$resource];
    }
public function getAsciiContentPath ( string $ resource ) { if ( null === $ this -> container -> getParameter ( 'ascii' ) ) { return null ; } $ paths = $ this -> container -> getParameter ( 'ascii' ) ; if ( ! array_key_exists ( $ resource , $ paths ) ) { return null ; } // Deal with multiple ascii files by returning one at random. if ( \ is_array ( $ paths [ $ resource ] ) ) { shuffle ( $ paths [ $ resource ] ) ; return reset ( $ paths [ $ resource ] ) ; } return $ paths [ $ resource ] ; }
Get ascii content path from grumphp.yml file.

@return string|null
Get ascii content path from grumphp . yml file .