github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/php/customization.go (about)

     1  package phpapp
     2  
     3  import (
     4  	"github.com/hashicorp/otto/helper/compile"
     5  	"github.com/hashicorp/otto/helper/schema"
     6  )
     7  
     8  type customizations struct {
     9  	Opts *compile.AppOptions
    10  }
    11  
    12  func (c *customizations) process(d *schema.FieldData) error {
    13  	c.Opts.Bindata.Context["php_version"] = d.Get("php_version")
    14  	return nil
    15  }