# |
Jul 23rd 2018, 18:28 |
phantomwatson |
You'd need to go into your plugin directory and run your composer commands from there for your plugin's `composer.json` file to be read. |
# |
Jul 23rd 2018, 18:27 |
phantomwatson |
Composer reads `composer.json` in your project's root and resolves everything from there. If you have a separate `composer.json` file in a plugin directory that's not referenced from your root file, then running `composer install` or `composer update` in your root directory won't update that plugin. |
# |
Jul 23rd 2018, 18:26 |
mdotobie |
so what about it’s current situation as a submodule, the dependencies can live in the plugins `vendor` folder and be accessed from there until the time I turn it into a real composer package? |
# |
Jul 23rd 2018, 18:25 |
mdotobie |
oh so composer will just read the required plugins from the plugins composer file and then load them into the parent applications `vendor` directory? |
# |
Jul 23rd 2018, 18:23 |
phantomwatson |
When you install a composer package, all of its dependencies also get installed to your `vendor` directory, assuming there aren't any conflicts. |
# |
Jul 23rd 2018, 18:20 |
slackebot |
the plugin project. But I’m unsure how these carry up to the main application in the submodule scenario and the composer package scenario. |
# |
Jul 23rd 2018, 18:20 |
mdotobie |
So I’m writing my first plugin for Cake3 and I’m confused on a workflow approach. My initial development is as a separate app that has a GitHub repo. I’ve included it in the main application as a submodule in the plugins folder. My plan is to later create a real Composer package and then require it in the main application. My confusion is around dependencies in the plugin. I know I can use Composer to require the necessary packages wit |
# |
Jul 23rd 2018, 18:18 |
dwms |
to relationships |
# |
Jul 23rd 2018, 18:17 |
dwms |
I did not exist anymore on return to included column |
# |
Jul 23rd 2018, 18:17 |
dwms |
crud-json-api |
# |
Jul 23rd 2018, 18:17 |
dwms |
help |
# |
Jul 23rd 2018, 17:46 |
sdevore |
Ok, I will. I thought that it was more focused on the display in the console rather then the ability to organize with file system layout. But I would certainly like something a little more structured in the console help output |
# |
Jul 23rd 2018, 17:43 |
admad |
@sdevore if you too want sub commands add your thoughts to that issue |
# |
Jul 23rd 2018, 16:59 |
D-rex |
ok thanks |
# |
Jul 23rd 2018, 16:59 |
phantomwatson |
D-rex, check out https://book.cakephp.org/3.0/en/orm/table-objects.html#customizing-the-entity-class-a-table-uses |
# |
Jul 23rd 2018, 16:58 |
D-rex |
I have a table ymm and ymms and ymms keeps using the entity for ymm |
# |
Jul 23rd 2018, 16:58 |
phantomwatson |
Changing whatever version constraints you have to "^3.0" should be fine. |
# |
Jul 23rd 2018, 16:58 |
D-rex |
is there a way to have a table name ending in 's' not inflect on the entity name |
# |
Jul 23rd 2018, 16:58 |
phantomwatson |
Just run `composer update`. If it doesn't update it to the version that you want, take a look at your `composer.json` file and the version constraints you have for the package `cakephp/cakephp`. |
# |
Jul 23rd 2018, 16:57 |
dwms |
yes |
# |
Jul 23rd 2018, 16:57 |
phantomwatson |
@dwms, are you using composer to manage your dependencies? |
# |
Jul 23rd 2018, 16:56 |
dwms |
? |
# |
Jul 23rd 2018, 16:56 |
dwms |
how to update version cakephp 3.15 to 3.16 |
# |
Jul 23rd 2018, 16:45 |
sdevore |
@admad will they have the subcommands organized at all like the shell has the Tasks? or are they going to have just a flat structure? I know there was an issue https://github.com/cakephp/cakephp/issues/12123 that talked about the display in the console. but what about the layout of commands and subcommands on the filesystem |
# |
Jul 23rd 2018, 16:39 |
admad |
Yes, commands are meant to replace shells in future |
# |
Jul 23rd 2018, 16:34 |
phantomwatson |
Is it known if "Command Tasks" will be added to the CakePHP core to replace Shell Tasks? |
# |
Jul 23rd 2018, 16:00 |
admad |
Craig: the 1.3 docs aren't going anywhere from the online manual |
# |
Jul 23rd 2018, 14:44 |
flavius |
don't mention it |
# |
Jul 23rd 2018, 14:35 |
Craig |
thanks flavius |
# |
Jul 23rd 2018, 14:35 |
Craig |
got it working now. it didnt install python3-sphinx so i did it manually |
# |
Jul 23rd 2018, 14:31 |
Craig |
nah it just missed a dep from requirements |
# |
Jul 23rd 2018, 14:30 |
Craig |
sphinx is definitely installed, there isn't a binary with it called sphinx-build |
# |
Jul 23rd 2018, 14:30 |
Craig |
make[1]: sphinx-build: Command not found |
# |
Jul 23rd 2018, 14:30 |
Craig |
im not sure its compatible with newer machines |
# |
Jul 23rd 2018, 14:30 |
Craig |
hmm |
# |
Jul 23rd 2018, 14:25 |
flavius |
pip is for python like composer is for php and npm is for node :P |
# |
Jul 23rd 2018, 14:25 |
Craig |
yeah. i dont really do python, so this is new to me |
# |
Jul 23rd 2018, 14:25 |
flavius |
python packages? |
# |
Jul 23rd 2018, 14:24 |
Craig |
goes to install it |
# |
Jul 23rd 2018, 14:24 |
Craig |
what exactly is pip? |
# |
Jul 23rd 2018, 14:24 |
Craig |
hmmmm |