Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Merge requests
!5
Devel
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Devel
devel
into
master
Overview
0
Commits
10
Pipelines
0
Changes
9
Merged
Krzysztof Dyszczyk
requested to merge
devel
into
master
7 years ago
Overview
0
Commits
10
Pipelines
0
Changes
9
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b392d25b
10 commits,
7 years ago
9 files
+
304
−
155
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
src/BuildDirector/LegacyBuildDirector.php
0 → 100644
+
37
−
0
View file @ b392d25b
Edit in single-file editor
Open in Web IDE
<?php
namespace
WPDesk\PluginBuilder\BuildDirector
;
use
WPDesk\PluginBuilder\Builder\AbstractBuilder
;
use
WPDesk\PluginBuilder\Plugin\AbstractPlugin
;
use
WPDesk\PluginBuilder\Storage\StorageFactory
;
class
LegacyBuildDirector
{
/** @var AbstractBuilder */
private
$builder
;
public
function
__construct
(
AbstractBuilder
$builder
)
{
$this
->
builder
=
$builder
;
}
/**
* Builds plugin
*/
public
function
build_plugin
()
{
$this
->
builder
->
build_plugin
();
$this
->
builder
->
init_plugin
();
$storage
=
new
StorageFactory
();
$this
->
builder
->
store_plugin
(
$storage
->
create_storage
()
);
}
/**
* Returns built plugin
*
* @return AbstractPlugin
*/
public
function
get_plugin
()
{
return
$this
->
builder
->
get_plugin
();
}
}
\ No newline at end of file
Loading