public static function publish(Application $app): void
    {
        $app->container()->singleton(
            RouteAnnotations::class,
            new static(
                $app->container()->getSingleton(AnnotationsParser::class)
            )
        );
    }
public static function publish(Application $app): void
    {
        $app->container()->singleton(
            RouteAnnotations::class,
            new static(
                $app->container()->getSingleton(AnnotationsParser::class)
            )
        );
    }
public static function publish ( Application $ app ) : void { $ app -> container ( ) -> singleton ( RouteAnnotations :: class , new static ( $ app -> container ( ) -> getSingleton ( AnnotationsParser :: class ) ) ) ; }
Bind the route annotations.

@param Application $app The application

@return void
Bind the route annotations .