文件操作 - Provider.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/common/src/Common/Libraries/Provider.php
编辑文件内容
<?php namespace TEC\Common\Libraries; use TEC\Common\Contracts\Service_Provider; use TEC\Common\StellarWP\Assets; use TEC\Common\StellarWP\DB; use TEC\Common\StellarWP\Schema; use Tribe__Main as Common; /** * Provider for the Common plugin. * * This class is used to register the libraries for the Common plugin. * * @since 5.0.10 * * @package TEC\Common\Libraries */ class Provider extends Service_Provider { /** * Hook prefix. * * @since 5.0.10 * * @var string */ protected static $hook_prefix = 'tec'; /** * Binds and sets up implementations. * * @since 5.0.10 */ public function register() { $this->container->singleton( static::class, $this ); tribe_register_provider( Installer\Provider::class ); tribe_register_provider( Uplink_Controller::class ); DB\Config::setHookPrefix( $this->get_hook_prefix() ); Assets\Config::set_hook_prefix( $this->get_hook_prefix() ); Assets\Config::set_path( Common::instance()->plugin_path . 'src/resources/' ); Assets\Config::set_version( Common::VERSION ); Assets\Config::set_relative_asset_path( 'src/resources/' ); Schema\Config::set_db( DB\DB::class ); Schema\Config::set_container( tribe() ); $this->container->register( Shepherd::class ); $this->container->register( Harbor::class ); } /** * Gets the hook prefix. * * @since 5.0.10 * * @return string */ public function get_hook_prefix(): string { return static::$hook_prefix; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件