Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow console input to be used within adapters #958

Merged
merged 5 commits into from Sep 19, 2016

Conversation

bgetsug
Copy link

@bgetsug bgetsug commented Sep 15, 2016

I created a custom adapter that needed to access the (symfony) console options, and I needed to make this change to make that possible.

edsonmedina and others added 5 commits July 27, 2016 13:23
Only `removeIndex()` was mentioned in the docs. 

It took me quite a while to figure out that it expected the field names (and not the index names), so I'm adding the reference.
* 0.6.x-dev:
  Prepare v0.6.4
  Update CHANGELING to prepare for v0.6.4 release
  Update README.md to point to master for badges
  Fix SQLite adapter drops table on changeColumn if there's a foreign key
  Update TextWrapper.php
  Update TextWrapper.php
  To use phinx for unit testing, sometimes is necessary to run not just the migrations, but the seeds as well. This commit add a new method getSeed that runs the seeds.
  When setting options as a non-associative array, Column fails with "Call to undefined method Phinx\Db\Table\Column::set0()". This check makes sure the developer gets an appropriate message.
  doc block updated
  Removed unused var
  Fix more missing return value and type
  Added missing return value
  Update README.md
  Getter should match setter. \\Phinx\\Console\\Command\\Create.php:21 uses getMigrationBaseClassName() so it is added to the interface
  Unused variable
  Class properties should be declared
Added mention to removeIndexByName()
@robmorgan
Copy link
Member

@bgetsug I'm changing it to be merged with 0.6.x-dev.

@robmorgan robmorgan changed the base branch from master to 0.6.x-dev September 19, 2016 09:31
@robmorgan
Copy link
Member

@bgetsug does this PR actually add any methods to the adapter classes?

@bgetsug
Copy link
Author

bgetsug commented Sep 19, 2016

@robmorgan I did not add any new methods to existing adapter classes. It's just that the instance of InputInterface was never making it to any adapter when setup in Environment::getAdapter().

@robmorgan
Copy link
Member

@bgetsug right I see, thanks! 👍

@robmorgan robmorgan merged commit 1d644d6 into cakephp:0.6.x-dev Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants