public function routes() : array
    {
        if ($this->inBuild()) {
            throw new BuildTimeVariableAccessException('Routes are not available during the build phase.');
        }
        if (empty($this->routesDef)) {
            throw new NotValidPlatformException('No routes are defined.  Are you sure you are running on Platform.sh?');
        }

        return $this->routesDef;
    }
public function routes() : array
    {
        if ($this->inBuild()) {
            throw new BuildTimeVariableAccessException('Routes are not available during the build phase.');
        }
        if (empty($this->routesDef)) {
            throw new NotValidPlatformException('No routes are defined.  Are you sure you are running on Platform.sh?');
        }

        return $this->routesDef;
    }
public function routes ( ) : array { if ( $ this -> inBuild ( ) ) { throw new BuildTimeVariableAccessException ( 'Routes are not available during the build phase.' ) ; } if ( empty ( $ this -> routesDef ) ) { throw new NotValidPlatformException ( 'No routes are defined.  Are you sure you are running on Platform.sh?' ) ; } return $ this -> routesDef ; }
Returns the routes definition.

@return array
The routes array, in PHP nested array form.
@throws BuildTimeVariableAccessException
If the routes are not accessible due to being in the wrong environment.
Returns the routes definition .