mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
entc: change default extension implementation
This commit is contained in:
committed by
Ariel Mashraki
parent
52663a4df1
commit
a19a89a141
@@ -253,7 +253,7 @@ type DefaultExtension struct{}
|
||||
func (DefaultExtension) Hooks() []gen.Hook { return nil }
|
||||
|
||||
// Annotations of the extensions.
|
||||
func (DefaultExtension) Annotations() gen.Annotations { return nil }
|
||||
func (DefaultExtension) Annotations() []Annotation { return nil }
|
||||
|
||||
// Templates of the extensions.
|
||||
func (DefaultExtension) Templates() []*gen.Template { return nil }
|
||||
@@ -261,6 +261,8 @@ func (DefaultExtension) Templates() []*gen.Template { return nil }
|
||||
// Options of the extensions.
|
||||
func (DefaultExtension) Options() []Option { return nil }
|
||||
|
||||
var _ Extension = (*DefaultExtension)(nil)
|
||||
|
||||
// templateOption ensures the template instantiate
|
||||
// once for config and execute the given Option.
|
||||
func templateOption(next func(t *gen.Template) (*gen.Template, error)) Option {
|
||||
|
||||
Reference in New Issue
Block a user