Initial commit: WordPress wp-content (themes, plugins, languages)
- Theme: momentry (custom theme with REST API routes) - Plugins: code-snippets (contains all API proxies) - Languages: zh_TW translations - Excludes: cache, backups, uploads, logs
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Code_Snippets;
|
||||
|
||||
interface Snippet_Config_Repository_Interface {
|
||||
public function load( string $base_dir ): array;
|
||||
public function save( string $base_dir, array $active_snippets ): void;
|
||||
public function update( string $base_dir, Snippet $snippet, ?bool $remove = false ): void;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Code_Snippets;
|
||||
|
||||
interface File_System_Interface {
|
||||
public function put_contents( string $path, string $contents, $chmod );
|
||||
public function exists( string $path ): bool;
|
||||
public function delete( $file, $recursive = false, $type = false ): bool;
|
||||
public function is_dir( string $path ): bool;
|
||||
public function mkdir( string $path, $chmod );
|
||||
public function rmdir( string $path, bool $recursive = false ): bool;
|
||||
public function chmod( string $path, $chmod ): bool;
|
||||
public function is_writable( string $path ): bool;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Code_Snippets;
|
||||
|
||||
interface Snippet_Type_Handler_Interface {
|
||||
public function get_file_extension(): string;
|
||||
public function get_dir_name(): string;
|
||||
public function wrap_code( string $code ): string;
|
||||
}
|
||||
Reference in New Issue
Block a user