Bolts::Injector::Setter - Inject by calling a setter method with a value
version 0.143171
use Bolts; artifact thing => ( class => 'MyApp::Thing', setters => { set_foo => dep('other_thing'), }, );
This controls injection by setter, which causes a method to be called on the constructed artifact with the value to be injected.
Bolts::Injector
This is the name of the method to call during injection. It defaults to "key" in Bolts::Injector.
Performs the injection into the setter.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2014 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Bolts, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bolts
CPAN shell
perl -MCPAN -e shell install Bolts
For more information on module installation, please visit the detailed CPAN module installation guide.