Publisher, add ability to create destination-folders |
Hei!
Ref: https://codeigniter4.github.io/userguide...isher.html Is it possible to add ability to create destination-folders? protected $destination = FCPATH . 'assets/vendor/bootstrap-icons'; Currently the Publisher class validates if the directory is valid on __construct, which make it hard to do anything before the publish. Workaround: Add custom __contruct to your Publisher-class. BootstrapPublisher.php PHP Code: public function __construct(?string $source = null, ?string $destination = null) { Regards Haugli92 |
Messages In This Thread |
Publisher, add ability to create destination-folders - by haugli92 - 03-11-2022, 04:44 AM
RE: Publisher, add ability to create destination-folders - by kenjis - 03-11-2022, 06:08 PM
|