ldc-groupe/content/plugins/wordpress-seo-premium/src/config/dependency-management.php
Vincent BRIDIER 134507db43 - Backup DEV
- Add DotEnv
- Fix Bato
- Etc..
2020-05-04 15:59:02 +02:00

32 lines
685 B
PHP

<?php
/**
* Yoast SEO Plugin File.
*
* @package Yoast\YoastSEO\Config
*/
namespace Yoast\WP\SEO\Config;
/**
* Makes sure the dependencies are loaded and the environment is prepared to use them.
* This is achieved by setting up class aliases and defines required constants.
*/
class Dependency_Management {
/**
* Checks if the prefixes are available.
*
* @codeCoverageIgnore
*
* @return bool True if prefixes are available.
*/
public function prefixed_available() {
static $available = null;
if ( $available === null ) {
$available = \is_file( \WPSEO_PATH . \YOAST_VENDOR_PREFIX_DIRECTORY . '/dependencies-prefixed.txt' );
}
return $available;
}
}