To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #171 (closed enhancement: duplicate)

Opened 23 months ago

Last modified 13 months ago

Create aSlotActions and extend that for Slots instead of BaseaSlotActions

Reported by: spike Owned by: tboutell
Priority: major Milestone: 1.5.1
Component: apostrophePlugin Version: 1.5
Keywords: slot, actions, extend Cc: team@…
Symfony version: 1.4

Description

I'm trying to add a global action to the BaseaSlotActions? file but I obviously don't want to edit the one in the plugin. It makes sense for there to be a class like:

<?php
class aSlotActions extends BaseaSlotactions
{
}
?>

and then have slots extend that like:

class MyCustomSlotActions extends aSlotActions
{
...
}

Right now, it's like:

class MyCustomSlotActions extends BaseaSlotActions
{
...
}

So there's no clean way to extend the base actions file.

Change History

Changed 23 months ago by boutell

  • status changed from new to accepted

You're right

Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell

Changed 13 months ago by johnnyoffline

  • cc team@… added
  • version changed from 1.0 to 1.5
  • milestone set to 1.5.1

This ticket had no milestone, just pushing it forward so we can address it.

Is this a difficult thing to do?

Changed 13 months ago by spike

Nope, this is pretty easy, it's just a matter of creating another (empty) class called aSlotActions, and renaming the references to BaseASlotActions to aSlotActions.

Changed 13 months ago by tboutell

  • status changed from accepted to closed
  • resolution set to duplicate

This got hit in 1.5.

Note: See TracTickets for help on using tickets.