Skip to content
Snippets Groups Projects

Draft: Basic implementation of plugin initializer

Closed Bartek Jaskulski requested to merge 1.x into review
2 files
+ 20
0
Compare changes
  • Side-by-side
  • Inline

Files

bin/wpinit 0 → 100755
#!/usr/bin/env php
<?php
use WPDesk\Init\Dumper\PhpFileDumper;
include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
$filename = $argv[1] ?? null;
$parser = new \WPDesk\Init\PluginHeaderParser();
$data = $parser->parse( $filename );
$dumper = new PhpFileDumper();
$dumper->dump( $parser->parse( $filename ), $argv[2] );
//echo "Compile static plugin resources.";
\ No newline at end of file
Loading