master

laravel/framework

Last updated at: 29/12/2023 09:21

CachesConfiguration.php

TLDR

This file defines an interface for caching application configuration in the Illuminate\Contracts\Foundation namespace.

Methods

configurationIsCached

This method determines if the application configuration is currently cached. It returns a boolean value indicating if the configuration is cached or not.

getCachedConfigPath

This method returns the path to the cached configuration file as a string. The cached configuration file contains the cached version of the application's configuration.

getCachedServicesPath

This method returns the path to the cached services.php file as a string. The cached services.php file contains PHP classes that have been precompiled for performance optimization.

<?php

namespace Illuminate\Contracts\Foundation;

interface CachesConfiguration
{
    /**
     * Determine if the application configuration is cached.
     *
     * @return bool
     */
    public function configurationIsCached();

    /**
     * Get the path to the configuration cache file.
     *
     * @return string
     */
    public function getCachedConfigPath();

    /**
     * Get the path to the cached services.php file.
     *
     * @return string
     */
    public function getCachedServicesPath();
}